summaryrefslogtreecommitdiffstats
path: root/cfg.c
diff options
context:
space:
mode:
authornicm <nicm>2019-06-05 20:00:53 +0000
committernicm <nicm>2019-06-05 20:00:53 +0000
commit8f40796f05f2db0ff8b2c9231054b62b511a7ba0 (patch)
treed5d32dbdcb1960e21e7cd877b71033cbb8ee1dbd /cfg.c
parent09e90c1645a8ecd1e467b13a743bb46d48febd37 (diff)
Add a -v flag to source-file to show the commands and line numbers.
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 d6435980..c79150de 100644
--- a/cfg.c
+++ b/cfg.c
@@ -127,6 +127,7 @@ load_cfg(const char *path, struct client *c, struct cmdq_item *item, int flags,
pi.flags = flags;
pi.file = path;
pi.line = 1;
+ pi.item = item;
pr = cmd_parse_from_file(f, &pi);
fclose(f);