Use correct size when calculating status line right trim. GitHub issue

5098 from Aung Myo Kyaw.
This commit is contained in:
nicm
2026-06-10 14:51:20 +00:00
parent 8cb4aabb8b
commit c019b3dad9

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