From 263529e8864eff7af1bb3fd929110545d4c10ba9 Mon Sep 17 00:00:00 2001 From: Michael Grant Date: Tue, 9 Dec 2025 20:11:44 +0000 Subject: [PATCH] Cleanup from previous commit. --- tty.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tty.c b/tty.c index 492bac5d..1c374ee3 100644 --- a/tty.c +++ b/tty.c @@ -2105,7 +2105,7 @@ void tty_cmd_scrollup(struct tty *tty, const struct tty_ctx *ctx) { struct client *c = tty->client; - u_int i, rlower; + u_int i; if (ctx->bigger || (!tty_full_width(tty, ctx) && !tty_use_margin(tty)) || @@ -2125,14 +2125,11 @@ 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); - /* 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)) - tty_cursor(tty, 0, rlower); + tty_cursor(tty, 0, tty->rlower); else - tty_cursor(tty, tty->rright, rlower); + tty_cursor(tty, tty->rright, tty->rlower); for (i = 0; i < ctx->num; i++) tty_putc(tty, '\n'); } else {