diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-03-08 12:02:39 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-03-08 12:02:39 +0000 |
commit | bc72cf2f52ea7e07e58213b98fd6c4ff287274b3 (patch) | |
tree | 14bd1a7ab8e8fa342c8155c0be5cffa9ecf08945 /cmd-run-shell.c | |
parent | 349aeb806ab02797e1d28be22802e73f75b77c1d (diff) | |
parent | de730f68a4bc97e26f8f5dcb404ed27dc489c0fd (diff) | |
download | rtmux-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.c | 5 |
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); } |