mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Make the mode used to view command output (a variant of copy mode) use
its own mode definition struct with a different init function rather than calling special setup functions.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user