From 818797ff08336520dcb37203daac01e10cdb6749 Mon Sep 17 00:00:00 2001 From: Michael Grant Date: Tue, 9 Dec 2025 17:47:36 +0000 Subject: [PATCH] Fix scrolling issue that collided with PR #4738 Fix y offset of mouse if status at top. --- tty.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tty.c b/tty.c index 8b94acd6..492bac5d 100644 --- a/tty.c +++ b/tty.c @@ -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))