Fix y offset of mouse if status at top. GitHub issue 4738 from Michael

Grant.
This commit is contained in:
nicm
2025-12-04 14:45:32 +00:00
parent 1f2210a3ce
commit 9d6c69ebde
3 changed files with 11 additions and 2 deletions

View File

@@ -627,7 +627,7 @@ window_copy_scroll1(struct window_mode_entry *wme, struct window_pane *wp,
new_slider_y = sb_top - wp->yoff + (sb_height - slider_height);
} else {
/* Slider is somewhere in the middle. */
new_slider_y = my - wp->yoff - sl_mpos + 1;
new_slider_y = my - wp->yoff - sl_mpos;
}
if (TAILQ_FIRST(&wp->modes) == NULL ||