Fix size calculation, GitHub issue 5664.

This commit is contained in:
Nicholas Marriott
2026-10-06 10:58:51 +01:00
parent e9634d4074
commit 0750e649ed

View File

@@ -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);