aboutsummaryrefslogtreecommitdiff
path: root/src/config.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.nim')
-rw-r--r--src/config.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.nim b/src/config.nim
index e8be1fc..e54b7b9 100644
--- a/src/config.nim
+++ b/src/config.nim
@@ -81,9 +81,9 @@ proc readConfigFile*(configFile: string):
table[currentCategory] = category
elif currentCategory.len > 0:
if line.match(re"(\w+)\ *=\ *(.*)", matches):
- category[].add(matches[0], matches[1])
+ category[matches[0]] = matches[1]
else:
- category[].add(line, "")
+ category[line] = ""
false
except EOFError: