Bring back previons fix to only redraw panes that need it after a redraw

is deferred, but clear the pane flags when they are actually redrawn
rather than every time.
This commit is contained in:
nicm
2020-04-18 07:32:53 +00:00
parent e153b928ff
commit b0a37e7514
4 changed files with 23 additions and 11 deletions

View File

@ -474,6 +474,7 @@ screen_redraw_pane(struct client *c, struct window_pane *wp)
tty_sync_start(&c->tty);
screen_redraw_draw_pane(&ctx, wp);
wp->flags &= ~PANE_REDRAW;
tty_reset(&c->tty);
tty_sync_end(&c->tty);
@ -563,6 +564,7 @@ screen_redraw_draw_panes(struct screen_redraw_ctx *ctx)
TAILQ_FOREACH(wp, &w->panes, entry) {
if (window_pane_visible(wp))
screen_redraw_draw_pane(ctx, wp);
wp->flags &= ~PANE_REDRAW;
}
}