diff options
author | 2019-07-17 17:49:23 +0000 | |
---|---|---|
committer | 2019-07-17 17:49:23 +0000 | |
commit | 0292d916408c92c255b9df87f9f0c763ca80a475 (patch) | |
tree | b11c4508ad4589510ea38f943219ee0a8f800b92 /usr.bin/tmux/cmd-if-shell.c | |
parent | Clear overlay on normal key press. (diff) | |
download | wireguard-openbsd-0292d916408c92c255b9df87f9f0c763ca80a475.tar.xz wireguard-openbsd-0292d916408c92c255b9df87f9f0c763ca80a475.zip |
Use the right client for if -b.
Diffstat (limited to 'usr.bin/tmux/cmd-if-shell.c')
-rw-r--r-- | usr.bin/tmux/cmd-if-shell.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-if-shell.c b/usr.bin/tmux/cmd-if-shell.c index 0f75678a165..e021ba6d35e 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.64 2019/06/18 11:08:42 nicm Exp $ */ +/* $OpenBSD: cmd-if-shell.c,v 1.65 2019/07/17 17:49:23 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -121,7 +121,10 @@ cmd_if_shell_exec(struct cmd *self, struct cmdq_item *item) cdata->cmd_else = NULL; memcpy(&cdata->mouse, m, sizeof cdata->mouse); - cdata->client = item->client; + if (!args_has(args, 'b')) + cdata->client = item->client; + else + cdata->client = c; if (cdata->client != NULL) cdata->client->references++; |