From f3e01ecc42e34a914ee390658625e920d321734a Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 23 May 2019 18:39:00 +0000 Subject: Fix line numbers - commands are added after the line ends so they need to get line - 1. --- cfg.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cfg.c') 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); -- cgit v1.2.3