diff options
author | 2017-04-20 09:20:22 +0000 | |
---|---|---|
committer | 2017-04-20 09:20:22 +0000 | |
commit | 1a432fef1e7f661a16c5f53b3d7c4a8d46981cab (patch) | |
tree | 4b56e5f2e775d53872bf4b79f29f5f1c2771b158 /usr.bin/tmux/cmd-if-shell.c | |
parent | use strtonum instead of strtoll to parse the argument to -j (diff) | |
download | wireguard-openbsd-1a432fef1e7f661a16c5f53b3d7c4a8d46981cab.tar.xz wireguard-openbsd-1a432fef1e7f661a16c5f53b3d7c4a8d46981cab.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 'usr.bin/tmux/cmd-if-shell.c')
-rw-r--r-- | usr.bin/tmux/cmd-if-shell.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-if-shell.c b/usr.bin/tmux/cmd-if-shell.c index 7ce23e0a046..b5029fbdabf 100644 --- a/usr.bin/tmux/cmd-if-shell.c +++ b/usr.bin/tmux/cmd-if-shell.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-if-shell.c,v 1.51 2017/03/08 13:36:12 nicm Exp $ */ +/* $OpenBSD: cmd-if-shell.c,v 1.52 2017/04/20 09:20:22 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -127,8 +127,8 @@ cmd_if_shell_exec(struct cmd *self, struct cmdq_item *item) cdata->item = NULL; memcpy(&cdata->mouse, &item->mouse, sizeof cdata->mouse); - job_run(shellcmd, s, cwd, cmd_if_shell_callback, cmd_if_shell_free, - cdata); + job_run(shellcmd, s, cwd, NULL, cmd_if_shell_callback, + cmd_if_shell_free, cdata); free(shellcmd); if (args_has(args, 'b')) |