From c019b3dad95fc9179898117595c3dd7fde3dd745 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 10 Jun 2026 14:51:20 +0000 Subject: [PATCH] Use correct size when calculating status line right trim. GitHub issue 5098 from Aung Myo Kyaw. --- screen-redraw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen-redraw.c b/screen-redraw.c index 63b19e49..dd62971a 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);