From 0750e649eda0de089f94249a87476b1839fcb785 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 6 Oct 2026 10:58:51 +0100 Subject: [PATCH] Fix size calculation, GitHub issue 5664. --- screen-redraw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen-redraw.c b/screen-redraw.c index a5496e1b1..332b3cf03 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -713,7 +713,7 @@ screen_redraw_draw_pane_status(struct screen_redraw_ctx *ctx) /* Right not visible. */ l = 0; x = xoff - ctx->ox; - width = size - x; + width = ctx->sx - x; } r = tty_check_overlay_range(tty, x, yoff, width);