mirror of
https://github.com/tmux/tmux.git
synced 2024-11-19 19:08:50 +00:00
Use the right client for if -b.
This commit is contained in:
parent
9e7774bb96
commit
f6a9f6b4ad
@ -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++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user