From 642cc15b9946b0281f34e889cde80b810f4fb130 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 3 Jun 2026 20:16:14 +0000 Subject: [PATCH] Change so panes scroll when the cursor is at the top instead of halfway down, from Michael Grant. --- tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tty.c b/tty.c index 2d1ea01d..e3c620be 100644 --- a/tty.c +++ b/tty.c @@ -999,7 +999,7 @@ tty_window_offset1(struct tty *tty, u_int *ox, u_int *oy, u_int *sx, u_int *sy) else if (cy > w->sy - *sy) *oy = w->sy - *sy; else - *oy = cy - *sy / 2; + *oy = cy - *sy + 1; } c->pan_window = NULL;