aboutsummaryrefslogtreecommitdiff
path: root/cmd-run-shell.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-03-08 12:02:39 +0000
committerThomas Adam <thomas@xteddy.org>2019-03-08 12:02:39 +0000
commitbc72cf2f52ea7e07e58213b98fd6c4ff287274b3 (patch)
tree14bd1a7ab8e8fa342c8155c0be5cffa9ecf08945 /cmd-run-shell.c
parent349aeb806ab02797e1d28be22802e73f75b77c1d (diff)
parentde730f68a4bc97e26f8f5dcb404ed27dc489c0fd (diff)
downloadrtmux-bc72cf2f52ea7e07e58213b98fd6c4ff287274b3.tar.gz
rtmux-bc72cf2f52ea7e07e58213b98fd6c4ff287274b3.tar.bz2
rtmux-bc72cf2f52ea7e07e58213b98fd6c4ff287274b3.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-run-shell.c')
-rw-r--r--cmd-run-shell.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd-run-shell.c b/cmd-run-shell.c
index 998ffcd8..8e99f90b 100644
--- a/cmd-run-shell.c
+++ b/cmd-run-shell.c
@@ -75,7 +75,10 @@ cmd_run_shell_print(struct job *job, const char *msg)
return;
}
- window_copy_init_for_output(wp);
+ if (wp->mode == NULL || wp->mode->mode != &window_view_mode) {
+ window_pane_reset_mode(wp);
+ window_pane_set_mode(wp, &window_view_mode, NULL, NULL);
+ }
window_copy_add(wp, "%s", msg);
}