mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-23 16:43:11 +01:00
|PatchSet 894
|Date: 2011/04/18 21:57:16 |Author: nicm |Branch: HEAD |Tag: (none) |Log: |The mouse should only work in copy mode if mode-mouse is set, not just |mouse-select-pane.
This commit is contained in:
parent
dc6bd98425
commit
7aafee7e48
5
window.c
5
window.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: window.c,v 1.146 2011-04-06 22:16:33 nicm Exp $ */
|
/* $Id: window.c,v 1.147 2011-04-18 22:03:55 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -890,7 +890,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