Do not redraw at all if nothing has changed.

This commit is contained in:
Nicholas Marriott
2020-04-24 11:56:44 +01:00
parent bb107d2979
commit ae73fd363b
2 changed files with 4 additions and 1 deletions

View File

@ -434,6 +434,9 @@ 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_sync_start(&c->tty);