From c5a7309966e916ff33f6cdf7e292f33965b0a6a5 Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 4 Jul 2026 08:34:16 +0000 Subject: [PATCH] Dirty ED 2 correctly, GiHub issue 5322 from git at twilligon dot com. --- screen-write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen-write.c b/screen-write.c index b725af6e5..c1192e8ae 100644 --- a/screen-write.c +++ b/screen-write.c @@ -1992,7 +1992,7 @@ screen_write_clearscreen(struct screen_write_ctx *ctx, u_int bg) screen_write_collect_clear(ctx, 0, sy); - if (!screen_write_should_draw_lines(ctx, s->cy, sy - s->cy)) + if (!screen_write_should_draw_lines(ctx, 0, sy)) return; if (~ttyctx.flags & TTY_CTX_PANE_OBSCURED) { tty_write(tty_cmd_clearscreen, &ttyctx);