mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Do not redraw or update mode if nothing has changed.
This commit is contained in:
@ -434,7 +434,11 @@ screen_redraw_screen(struct client *c)
|
||||
return;
|
||||
|
||||
flags = screen_redraw_update(c, c->flags);
|
||||
if ((flags & CLIENT_ALLREDRAWFLAGS) == 0)
|
||||
return;
|
||||
|
||||
screen_redraw_set_context(c, &ctx);
|
||||
tty_update_mode(&c->tty, c->tty.mode, NULL);
|
||||
tty_sync_start(&c->tty);
|
||||
|
||||
if (flags & (CLIENT_REDRAWWINDOW|CLIENT_REDRAWBORDERS)) {
|
||||
@ -470,6 +474,7 @@ screen_redraw_pane(struct client *c, struct window_pane *wp)
|
||||
return;
|
||||
|
||||
screen_redraw_set_context(c, &ctx);
|
||||
tty_update_mode(&c->tty, c->tty.mode, NULL);
|
||||
tty_sync_start(&c->tty);
|
||||
|
||||
screen_redraw_draw_pane(&ctx, wp);
|
||||
|
Reference in New Issue
Block a user