mirror of
https://github.com/tmux/tmux.git
synced 2026-01-10 07:10:23 +00:00
Fix scrolling issue that collided with PR #4738 Fix y offset of mouse if status at top.
This commit is contained in:
7
tty.c
7
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 is set in tty_region_pane above. */
|
||||
rlower = tty->rlower;
|
||||
else
|
||||
rlower = ctx->wsy - 1;
|
||||
|
||||
if (tty->client->session->statusat == 0)
|
||||
rlower += tty->client->session->statuslines;
|
||||
|
||||
if (ctx->num == 1 || !tty_term_has(tty->term, TTYC_INDN)) {
|
||||
if (!tty_use_margin(tty))
|
||||
|
||||
Reference in New Issue
Block a user