mirror of
https://github.com/tmux/tmux.git
synced 2025-12-20 00:01:17 -05:00
Bugfix: Add horizontal border case to server_client_check_mouse_in_pane.
This commit is contained in:
parent
e9afd2bb5e
commit
031cb6fec5
@ -613,7 +613,8 @@ server_client_check_mouse_in_pane(struct window_pane *wp, u_int px, u_int py,
|
|||||||
line = wp->yoff + wp->sy;
|
line = wp->yoff + wp->sy;
|
||||||
|
|
||||||
/* Check if point is within the pane or scrollbar. */
|
/* Check if point is within the pane or scrollbar. */
|
||||||
if (((pane_status != PANE_STATUS_OFF && py != line) ||
|
if (((pane_status != PANE_STATUS_OFF &&
|
||||||
|
py != line && py != wp->yoff + wp->sy) ||
|
||||||
(wp->yoff == 0 && py < wp->sy) ||
|
(wp->yoff == 0 && py < wp->sy) ||
|
||||||
(py >= wp->yoff && py < wp->yoff + wp->sy)) &&
|
(py >= wp->yoff && py < wp->yoff + wp->sy)) &&
|
||||||
((sb_pos == PANE_SCROLLBARS_RIGHT &&
|
((sb_pos == PANE_SCROLLBARS_RIGHT &&
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user