diff options
author | 2020-05-16 16:02:24 +0000 | |
---|---|---|
committer | 2020-05-16 16:02:24 +0000 | |
commit | 67c16a7c4d17d310924af977dee76cce5e60baf4 (patch) | |
tree | 5687d51b44d9a5502e6440cf31fcf9922f470f95 /usr.bin/tmux/cmd-run-shell.c | |
parent | Support embedded styles in the display-message message, GitHub issue (diff) | |
download | wireguard-openbsd-67c16a7c4d17d310924af977dee76cce5e60baf4.tar.xz wireguard-openbsd-67c16a7c4d17d310924af977dee76cce5e60baf4.zip |
Add a customize mode where keys and options may be browsed and changed,
includes adding a brief description of each option. Bound to "C" by
default.
Diffstat (limited to 'usr.bin/tmux/cmd-run-shell.c')
-rw-r--r-- | usr.bin/tmux/cmd-run-shell.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-run-shell.c b/usr.bin/tmux/cmd-run-shell.c index a28199b788a..ef3dba86e12 100644 --- a/usr.bin/tmux/cmd-run-shell.c +++ b/usr.bin/tmux/cmd-run-shell.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-run-shell.c,v 1.67 2020/04/13 20:51:57 nicm Exp $ */ +/* $OpenBSD: cmd-run-shell.c,v 1.68 2020/05/16 16:02:24 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -190,7 +190,8 @@ cmd_run_shell_callback(struct job *job) retcode = WTERMSIG(status); xasprintf(&msg, "'%s' terminated by signal %d", cmd, retcode); retcode += 128; - } + } else + retcode = 0; if (msg != NULL) cmd_run_shell_print(job, msg); free(msg); |