Fix for window size taller than tty.

This commit is contained in:
Michael Grant
2026-03-10 13:21:01 +00:00
parent e928e80a42
commit 8a90fce476
5 changed files with 44 additions and 21 deletions

View File

@@ -875,9 +875,11 @@ have_event:
* scrollbar.
*/
if (where == NOWHERE) {
if (c->tty.mouse_scrolling_flag)
if (c->tty.mouse_scrolling_flag) {
where = SCROLLBAR_SLIDER;
else {
m->wp = c->tty.mouse_wp->id;
m->w = c->tty.mouse_wp->window->id;
} else {
px = x;
if (m->statusat == 0 && y >= m->statuslines)
py = y - m->statuslines;