mirror of
https://github.com/tmux/tmux.git
synced 2025-01-13 03:48:51 +00:00
The mouse should only work in copy mode if mode-mouse is set, not just
mouse-select-pane.
This commit is contained in:
parent
0bb2119781
commit
0f97ac4221
3
window.c
3
window.c
@ -884,7 +884,8 @@ window_pane_mouse(
|
|||||||
m->y -= wp->yoff;
|
m->y -= wp->yoff;
|
||||||
|
|
||||||
if (wp->mode != NULL) {
|
if (wp->mode != NULL) {
|
||||||
if (wp->mode->mouse != NULL)
|
if (wp->mode->mouse != NULL &&
|
||||||
|
options_get_number(&wp->window->options, "mode-mouse"))
|
||||||
wp->mode->mouse(wp, sess, m);
|
wp->mode->mouse(wp, sess, m);
|
||||||
} else if (wp->fd != -1)
|
} else if (wp->fd != -1)
|
||||||
input_mouse(wp, m);
|
input_mouse(wp, m);
|
||||||
|
Loading…
Reference in New Issue
Block a user