summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Cohen <ben@bencohen.net>2020-04-28 10:06:38 -0400
committerReto Brunner <reto@labrat.space>2020-04-29 09:45:34 +0200
commit63fb2b20062a0fe72893fbe8a1a829f98d03fe12 (patch)
treeacdd5ee4917aa2ad28889d9acd85b1ee67699ff3
parentd3faf66c503b847eb3a4a913081f1dd2f777d157 (diff)
downloadaerc-63fb2b20062a0fe72893fbe8a1a829f98d03fe12.tar.gz
Changing aerc.conf delimiter parsing to use only =, and not : as well
-rw-r--r--config/config.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/config/config.go b/config/config.go
index e00518c..8ebd69d 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
 		}
 	}