Changing aerc.conf delimiter parsing to use only =, and not : as well
This commit is contained in:
parent
d3faf66c50
commit
63fb2b2006
1 changed files with 6 additions and 2 deletions
|
@ -419,12 +419,16 @@ func LoadConfigFromFile(root *string, sharedir string) (*AercConfig, error) {
|
|||
return nil, err
|
||||
}
|
||||
filename = path.Join(*root, "aerc.conf")
|
||||
file, err := ini.Load(filename)
|
||||
file, err := ini.LoadSources(ini.LoadOptions{
|
||||
KeyValueDelimiters: "=",
|
||||
}, filename)
|
||||
if err != nil {
|
||||
if err := installTemplate(*root, sharedir, "aerc.conf"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if file, err = ini.Load(filename); err != nil {
|
||||
if file, err = ini.LoadSources(ini.LoadOptions{
|
||||
KeyValueDelimiters: "=",
|
||||
}, filename); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue