summaryrefslogtreecommitdiffstats
path: root/input-keys.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-05-12 14:59:17 +0000
committerTiago Cunha <tcunha@gmx.com>2012-05-12 14:59:17 +0000
commit2f0db58777e2293d0aa6d96c1d59660b541ee2db (patch)
tree8aef4ba66fd1594ca924f0aee8463e645fd6d33a /input-keys.c
parent470f52141024138ed74018f8933ad8024543f93b (diff)
Sync OpenBSD patchset 1110:
Only enter copy mode on scroll up, from Ailin Nemui.
Diffstat (limited to 'input-keys.c')
-rw-r--r--input-keys.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/input-keys.c b/input-keys.c
index 8bb1ff71..ea1fb92e 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -222,7 +222,8 @@ input_mouse(struct window_pane *wp, struct mouse_event *m)
return;
}
- if (options_get_number(&wp->window->options, "mode-mouse") == 1) {
+ if ((m->b & 3) != 1 &&
+ options_get_number(&wp->window->options, "mode-mouse") == 1) {
if (window_pane_set_mode(wp, &window_copy_mode) == 0) {
window_copy_init_from_pane(wp);
if (wp->mode->mouse != NULL)