Bugfix, max margin should be right side of window.

This commit is contained in:
Michael Grant
2025-11-03 22:38:35 +01:00
parent 6c5cc40039
commit 04792d0656

2
tty.c
View File

@@ -2569,7 +2569,9 @@ tty_margin_pane(struct tty *tty, const struct tty_ctx *ctx)
r = ctx->xoff + ctx->sx - 1 - ctx->wox;
if (l < 0) l = 0;
if (l > (int)ctx->wsx) l = ctx->wsx;
if (r < 0) r = 0;
if (r > (int)ctx->wsx) r = ctx->wsx;
tty_margin(tty, l, r);
}