Instead of fully redrawing the pane when sync ends, only redraw lines

that have been changed.
This commit is contained in:
nicm
2026-07-01 15:44:13 +00:00
parent e9396e59d9
commit 565db46a19
4 changed files with 142 additions and 51 deletions

View File

@@ -1655,12 +1655,14 @@ redraw_draw(struct client *c, struct window_pane *wp, int flags)
if (wp != NULL) {
if (wp->base.mode & MODE_SYNC)
screen_write_stop_sync(wp);
screen_write_clear_dirty(wp);
} else {
TAILQ_FOREACH(loop, &scene->w->panes, entry) {
if (!window_pane_is_visible(loop))
continue;
if (loop->base.mode & MODE_SYNC)
screen_write_stop_sync(loop);
screen_write_clear_dirty(loop);
}
}
}