diff options
author | nicm <nicm> | 2016-10-15 23:06:39 +0000 |
---|---|---|
committer | nicm <nicm> | 2016-10-15 23:06:39 +0000 |
commit | bfe14b531267f3762a518f98b72a3148a134396a (patch) | |
tree | 7f955199dab403618d1c58a1c43da0362ab7fa8e /cmd-run-shell.c | |
parent | 4fbf564292b2952869d1fabca2a493d8f52b2af3 (diff) | |
download | rtmux-bfe14b531267f3762a518f98b72a3148a134396a.tar.gz rtmux-bfe14b531267f3762a518f98b72a3148a134396a.tar.bz2 rtmux-bfe14b531267f3762a518f98b72a3148a134396a.zip |
Only use pane with run-shell if -t is given.
Diffstat (limited to 'cmd-run-shell.c')
-rw-r--r-- | cmd-run-shell.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd-run-shell.c b/cmd-run-shell.c index 55c98ad3..c81c76f8 100644 --- a/cmd-run-shell.c +++ b/cmd-run-shell.c @@ -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++; |