summaryrefslogtreecommitdiffstats
path: root/screen-redraw.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-18 07:32:53 +0000
committernicm <nicm>2020-04-18 07:32:53 +0000
commitb0a37e7514f2e08a9a8315cc68add4f0a53ed2af (patch)
tree8ddae5f75aa303edfb7a9039ff101ba846dcc0be /screen-redraw.c
parente153b928ff5139fdc39b45db493a1c81d2175d21 (diff)
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.
Diffstat (limited to 'screen-redraw.c')
-rw-r--r--screen-redraw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/screen-redraw.c b/screen-redraw.c
index c9e70590..4c017706 100644
--- a/screen-redraw.c
+++ b/screen-redraw.c
@@ -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;
}
}