diff options
author | nicm <nicm> | 2017-04-20 09:20:22 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-04-20 09:20:22 +0000 |
commit | 0b44ad99b51606a8cab662e04cf043a8c4a3ca92 (patch) | |
tree | 06a3c095e0babd541df00c9cd80bac898724c984 /cmd-run-shell.c | |
parent | f184c6f06c8bd63390ecec3fbe290b087f995ea7 (diff) | |
download | rtmux-0b44ad99b51606a8cab662e04cf043a8c4a3ca92.tar.gz rtmux-0b44ad99b51606a8cab662e04cf043a8c4a3ca92.tar.bz2 rtmux-0b44ad99b51606a8cab662e04cf043a8c4a3ca92.zip |
If a #() command doesn't exit, use its most recent line of output (it
must be a full line). Don't let it redraw the status line more than once
a second.
Requested by someone about 10 years ago...
Diffstat (limited to 'cmd-run-shell.c')
-rw-r--r-- | cmd-run-shell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-run-shell.c b/cmd-run-shell.c index d06d7f99..48d88049 100644 --- a/cmd-run-shell.c +++ b/cmd-run-shell.c @@ -110,8 +110,8 @@ cmd_run_shell_exec(struct cmd *self, struct cmdq_item *item) if (!args_has(args, 'b')) cdata->item = item; - job_run(cdata->cmd, s, cwd, cmd_run_shell_callback, cmd_run_shell_free, - cdata); + job_run(cdata->cmd, s, cwd, NULL, cmd_run_shell_callback, + cmd_run_shell_free, cdata); if (args_has(args, 'b')) return (CMD_RETURN_NORMAL); |