The mouse should only work in copy mode if mode-mouse is set, not just

mouse-select-pane.
pull/1/head
Nicholas Marriott 2011-04-18 20:57:16 +00:00
parent 0bb2119781
commit 0f97ac4221
1 changed files with 2 additions and 1 deletions

View File

@ -884,7 +884,8 @@ window_pane_mouse(
m->y -= wp->yoff;
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);
} else if (wp->fd != -1)
input_mouse(wp, m);