aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicm <nicm>2019-07-17 17:49:23 +0000
committernicm <nicm>2019-07-17 17:49:23 +0000
commitf6a9f6b4ad139f46426ff308669b49a8dc25592e (patch)
tree3c07f093f3b76842a2e81b20c257d71bd6904e27
parent9e7774bb966f6f90270df8a0d16efb2b2a5ba860 (diff)
downloadrtmux-f6a9f6b4ad139f46426ff308669b49a8dc25592e.tar.gz
rtmux-f6a9f6b4ad139f46426ff308669b49a8dc25592e.tar.bz2
rtmux-f6a9f6b4ad139f46426ff308669b49a8dc25592e.zip
Use the right client for if -b.
-rw-r--r--cmd-if-shell.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd-if-shell.c b/cmd-if-shell.c
index a992602c..2befbc0c 100644
--- a/cmd-if-shell.c
+++ b/cmd-if-shell.c
@@ -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++;