mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
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:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user