Changing aerc.conf delimiter parsing to use only =, and not : as well
This commit is contained in:
parent
d3faf66c50
commit
63fb2b2006
|
@ -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 New Issue