mirror of
https://github.com/tmux/tmux.git
synced 2025-10-26 12:27:15 +00:00
Tidy changing the mode into window_copy_init_for_output.
This commit is contained in:
@@ -426,12 +426,7 @@ cmdq_print(struct cmdq_item *item, const char *fmt, ...)
|
||||
server_client_push_stdout(c);
|
||||
} else {
|
||||
w = c->session->curw->window;
|
||||
if (w->active->mode != &window_copy_mode) {
|
||||
window_pane_reset_mode(w->active);
|
||||
window_pane_set_mode(w->active, &window_copy_mode, NULL,
|
||||
NULL);
|
||||
window_copy_init_for_output(w->active);
|
||||
}
|
||||
window_copy_init_for_output(w->active);
|
||||
window_copy_vadd(w->active, fmt, ap);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user