aboutsummaryrefslogtreecommitdiff
path: root/cmd-run-shell.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-03-07 20:02:41 +0000
committerThomas Adam <thomas@xteddy.org>2019-03-07 20:02:41 +0000
commita1009e7bd3c4acd7dc4157e317013f066d1deca8 (patch)
tree4b078a40fadb0fc7007ff12ec00be61045bca5de /cmd-run-shell.c
parent5a564a0c1ac768d6fc02669891fdcbd2487af0e8 (diff)
parent3c24bc5617bfdf90f94cc088f3769397c7569649 (diff)
downloadrtmux-a1009e7bd3c4acd7dc4157e317013f066d1deca8.tar.gz
rtmux-a1009e7bd3c4acd7dc4157e317013f066d1deca8.tar.bz2
rtmux-a1009e7bd3c4acd7dc4157e317013f066d1deca8.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-run-shell.c')
-rw-r--r--cmd-run-shell.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd-run-shell.c b/cmd-run-shell.c
index 47fceafe..998ffcd8 100644
--- a/cmd-run-shell.c
+++ b/cmd-run-shell.c
@@ -75,10 +75,8 @@ cmd_run_shell_print(struct job *job, const char *msg)
return;
}
- if (window_pane_set_mode(wp, &window_copy_mode, NULL, NULL) == 0)
- window_copy_init_for_output(wp);
- if (wp->mode == &window_copy_mode)
- window_copy_add(wp, "%s", msg);
+ window_copy_init_for_output(wp);
+ window_copy_add(wp, "%s", msg);
}
static enum cmd_retval