mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
Only update mode when actually going to redraw something.
This commit is contained in:
parent
1d2bd864f2
commit
baf1fca273
@ -1732,7 +1732,6 @@ server_client_check_redraw(struct client *c)
|
||||
|
||||
flags = tty->flags & (TTY_BLOCK|TTY_FREEZE|TTY_NOCURSOR);
|
||||
tty->flags = (tty->flags & ~(TTY_BLOCK|TTY_FREEZE)) | TTY_NOCURSOR;
|
||||
tty_update_mode(tty, mode, NULL);
|
||||
|
||||
if (~c->flags & CLIENT_REDRAWWINDOW) {
|
||||
/*
|
||||
@ -1742,13 +1741,14 @@ server_client_check_redraw(struct client *c)
|
||||
TAILQ_FOREACH(wp, &c->session->curw->window->panes, entry) {
|
||||
if (wp->flags & PANE_REDRAW) {
|
||||
log_debug("%s: redrawing pane %%%u", __func__, wp->id);
|
||||
tty_update_mode(tty, tty->mode, NULL);
|
||||
tty_update_mode(tty, mode, NULL);
|
||||
screen_redraw_pane(c, wp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (c->flags & CLIENT_ALLREDRAWFLAGS) {
|
||||
tty_update_mode(tty, mode, NULL);
|
||||
if (options_get_number(s->options, "set-titles"))
|
||||
server_client_set_title(c);
|
||||
screen_redraw_screen(c);
|
||||
|
Loading…
Reference in New Issue
Block a user