Only use pane with run-shell if -t is given.

pull/587/merge
nicm 2016-10-15 23:06:39 +00:00
parent 4fbf564292
commit bfe14b5312
1 changed files with 5 additions and 1 deletions

View File

@ -100,7 +100,11 @@ cmd_run_shell_exec(struct cmd *self, struct cmd_q *cmdq)
cdata = xcalloc(1, sizeof *cdata);
cdata->cmd = shellcmd;
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;
cmdq->references++;