summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2011-04-18 20:57:16 +0000
committernicm <nicm@openbsd.org>2011-04-18 20:57:16 +0000
commit579429cc4e22681c6c3fe830d3640fd6bf628972 (patch)
treebac7cf1309877ab7cf9e422ec0403e48ab405655
parentsort SEE ALSO; (diff)
downloadwireguard-openbsd-579429cc4e22681c6c3fe830d3640fd6bf628972.tar.xz
wireguard-openbsd-579429cc4e22681c6c3fe830d3640fd6bf628972.zip
The mouse should only work in copy mode if mode-mouse is set, not just
mouse-select-pane.
-rw-r--r--usr.bin/tmux/window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index 4bc7b9db100..c448a50ffd6 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.64 2011/03/27 20:27:27 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.65 2011/04/18 20:57:16 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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);