summaryrefslogtreecommitdiffstats
path: root/cfg.c
diff options
context:
space:
mode:
authornicm <nicm>2019-05-23 18:39:00 +0000
committernicm <nicm>2019-05-23 18:39:00 +0000
commitf3e01ecc42e34a914ee390658625e920d321734a (patch)
tree0ddaf2153c76df131932b80c71903d80f7dda656 /cfg.c
parent6c260af56db8a71747c1dc51fe6bba2f51c47f4d (diff)
Fix line numbers - commands are added after the line ends so they need to
get line - 1.
Diffstat (limited to 'cfg.c')
-rw-r--r--cfg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cfg.c b/cfg.c
index aa5c13b7..d6435980 100644
--- a/cfg.c
+++ b/cfg.c
@@ -126,6 +126,7 @@ load_cfg(const char *path, struct client *c, struct cmdq_item *item, int flags,
memset(&pi, 0, sizeof pi);
pi.flags = flags;
pi.file = path;
+ pi.line = 1;
pr = cmd_parse_from_file(f, &pi);
fclose(f);