From 556235fbe27582ee5214df277a06dfd6726e76b8 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 2 Oct 2026 12:53:26 +0000 Subject: [PATCH] Sync redraw should use the given rows not the scroll region now. --- screen-write.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/screen-write.c b/screen-write.c index b024e474b..675960beb 100644 --- a/screen-write.c +++ b/screen-write.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-write.c,v 1.295 2026/10/02 12:48:52 nicm Exp $ */ +/* $OpenBSD: screen-write.c,v 1.296 2026/10/02 12:53:26 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -1388,11 +1388,11 @@ screen_write_sync_scroll_dirty(struct screen_write_ctx *ctx) /* Redraw the scrolled lines for a client which cannot scroll them. */ static void -screen_write_sync_redraw_cb(const struct tty_ctx *ttyctx) +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, wp->sync_rupper, wp->sync_rlower); + bit_nset(wp->sync_dirty, py, py + ny - 1); } /* Send the deferred scroll to the client. */