Fix scrolling issue that collided with PR #4738 Fix y offset of mouse if status at top.

This commit is contained in:
Michael Grant
2025-12-09 17:47:36 +00:00
parent d263dbe9dd
commit 818797ff08

9
tty.c
View File

@@ -2125,13 +2125,8 @@ tty_cmd_scrollup(struct tty *tty, const struct tty_ctx *ctx)
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
tty_margin_pane(tty, ctx);
if (tty->rlower < ctx->wsy)
rlower = tty->rlower;
else
rlower = ctx->wsy - 1;
if (tty->client->session->statusat == 0)
rlower += tty->client->session->statuslines;
/* rlower is set in tty_region_pane above. */
rlower = tty->rlower;
if (ctx->num == 1 || !tty_term_has(tty->term, TTYC_INDN)) {
if (!tty_use_margin(tty))