diff options
author | nicm <nicm> | 2019-06-14 13:34:45 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-06-14 13:34:45 +0000 |
commit | d1d3bbb458b50ec455d65774d5c6669546b3b4ca (patch) | |
tree | 1d50678f737c276e42352b6bd7a529b4b93db0cb | |
parent | 45203582ff8708042c5f4f7134ad7d4ec71d2050 (diff) | |
download | rtmux-d1d3bbb458b50ec455d65774d5c6669546b3b4ca.tar.gz rtmux-d1d3bbb458b50ec455d65774d5c6669546b3b4ca.tar.bz2 rtmux-d1d3bbb458b50ec455d65774d5c6669546b3b4ca.zip |
Show filename with -v for source-file.
-rw-r--r-- | cmd-parse.y | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd-parse.y b/cmd-parse.y index 1a6af3e7..1dbc27a7 100644 --- a/cmd-parse.y +++ b/cmd-parse.y @@ -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); } } |