As well as tracking modified (dirty) lines during a synchronized update,

also track scrolled lines. This means they can be scrolled as one
instead of forcing each line to be redrawn - much less expensive for a
very common operation. From Ben Maurer in GitHub issue 5611.
This commit is contained in:
nicm
2026-09-24 11:19:39 +00:00
committed by tmux update bot
parent aa4123ab58
commit 7fc7f1bf69
4 changed files with 164 additions and 37 deletions

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: window.c,v 1.377 2026/09/21 10:33:16 nicm Exp $ */
/* $OpenBSD: window.c,v 1.378 2026/09/24 11:19:39 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1521,7 +1521,7 @@ window_pane_destroy(struct window_pane *wp)
window_pane_clear_prompt(wp);
window_pane_free_modes(wp);
screen_write_clear_dirty(wp);
screen_write_sync_clear_dirty(wp);
if (wp->fd != -1) {
bufferevent_free(wp->event);