Add a -v flag to source-file to show the commands and line numbers.

This commit is contained in:
nicm
2019-06-05 20:00:53 +00:00
parent 09e90c1645
commit 8f40796f05
5 changed files with 26 additions and 3 deletions

1
cfg.c
View File

@ -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);