diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-05-23 18:39:01 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-05-23 18:39:01 +0000 |
commit | aa2c02969081b192d47bfc7466cce32d21ed41e2 (patch) | |
tree | d2222f8a9aaa105fdc1d203e704294542b2a98ad /usr.bin/tmux/cfg.c | |
parent | a6b50d53034cadf73cdd7f3734a481006486f386 (diff) |
Fix line numbers - commands are added after the line ends so they need to
get line - 1.
Diffstat (limited to 'usr.bin/tmux/cfg.c')
-rw-r--r-- | usr.bin/tmux/cfg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/cfg.c b/usr.bin/tmux/cfg.c index fedddc5f386..d58d89bbc7a 100644 --- a/usr.bin/tmux/cfg.c +++ b/usr.bin/tmux/cfg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cfg.c,v 1.71 2019/05/23 11:13:30 nicm Exp $ */ +/* $OpenBSD: cfg.c,v 1.72 2019/05/23 18:39:00 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); |