Do not set zero bits and add features.

This commit is contained in:
Nicholas Marriott
2026-10-14 14:36:43 +01:00
parent 1ce50ef13a
commit 3a2b9ae5be
3 changed files with 8 additions and 1 deletions

View File

@@ -1407,7 +1407,8 @@ screen_write_sync_redraw_cb(const struct tty_ctx *ttyctx, u_int py, u_int ny)
{
struct window_pane *wp = ttyctx->arg;
bit_nset(wp->sync_dirty, py, py + ny - 1);
if (ny != 0)
bit_nset(wp->sync_dirty, py, py + ny - 1);
}
/* Send the deferred scroll to the client. */