From 63fb2b20062a0fe72893fbe8a1a829f98d03fe12 Mon Sep 17 00:00:00 2001 From: Ben Cohen Date: Tue, 28 Apr 2020 10:06:38 -0400 Subject: Changing aerc.conf delimiter parsing to use only =, and not : as well --- config/config.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'config/config.go') diff --git a/config/config.go b/config/config.go index e00518cb..8ebd69d3 100644 --- a/config/config.go +++ b/config/config.go @@ -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 } } -- cgit