mirror of
https://github.com/tmux/tmux.git
synced 2024-10-06 12:28:57 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
3d8efdf310
@ -100,7 +100,11 @@ cmd_run_shell_exec(struct cmd *self, struct cmd_q *cmdq)
|
|||||||
cdata = xcalloc(1, sizeof *cdata);
|
cdata = xcalloc(1, sizeof *cdata);
|
||||||
cdata->cmd = shellcmd;
|
cdata->cmd = shellcmd;
|
||||||
cdata->bflag = args_has(args, 'b');
|
cdata->bflag = args_has(args, 'b');
|
||||||
cdata->wp_id = wp != NULL ? (int) wp->id : -1;
|
|
||||||
|
if (args_has(args, 't') && wp != NULL)
|
||||||
|
cdata->wp_id = wp->id;
|
||||||
|
else
|
||||||
|
cdata->wp_id = -1;
|
||||||
|
|
||||||
cdata->cmdq = cmdq;
|
cdata->cmdq = cmdq;
|
||||||
cmdq->references++;
|
cmdq->references++;
|
||||||
|
Loading…
Reference in New Issue
Block a user