diff options
author | 2019-06-14 13:34:45 +0000 | |
---|---|---|
committer | 2019-06-14 13:34:45 +0000 | |
commit | d47c8058cd2a4e58f0622fae56a18ed2759786fc (patch) | |
tree | 11d2632e8faa9793ecc63b65b68b3f7a0e79a660 | |
parent | Use timeout_add_msec(9) (diff) | |
download | wireguard-openbsd-d47c8058cd2a4e58f0622fae56a18ed2759786fc.tar.xz wireguard-openbsd-d47c8058cd2a4e58f0622fae56a18ed2759786fc.zip |
Show filename with -v for source-file.
-rw-r--r-- | usr.bin/tmux/cmd-parse.y | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-parse.y b/usr.bin/tmux/cmd-parse.y index 77504460744..98234c86823 100644 --- a/usr.bin/tmux/cmd-parse.y +++ b/usr.bin/tmux/cmd-parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-parse.y,v 1.15 2019/06/14 12:04:11 nicm Exp $ */ +/* $OpenBSD: cmd-parse.y,v 1.16 2019/06/14 13:34:45 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -517,7 +517,10 @@ cmd_parse_print_commands(struct cmd_parse_input *pi, u_int line, if (pi->item != NULL && (pi->flags & CMD_PARSE_VERBOSE)) { s = cmd_list_print(cmdlist, 0); - cmdq_print(pi->item, "%u: %s", line, s); + if (pi->file != NULL) + cmdq_print(pi->item, "%s:%u: %s", pi->file, line, s); + else + cmdq_print(pi->item, "%u: %s", line, s); free(s); } } |