Change so panes scroll when the cursor is at the top instead of halfway

down, from Michael Grant.
This commit is contained in:
nicm
2026-06-03 20:16:14 +00:00
parent 390207cdf1
commit 642cc15b99

2
tty.c
View File

@@ -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) else if (cy > w->sy - *sy)
*oy = w->sy - *sy; *oy = w->sy - *sy;
else else
*oy = cy - *sy / 2; *oy = cy - *sy + 1;
} }
c->pan_window = NULL; c->pan_window = NULL;