summaryrefslogtreecommitdiffstats
path: root/input-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-05-05 18:48:31 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-05-05 18:48:31 +0000
commit218b692221b9dd675275ec353364910dfc072151 (patch)
tree4aba976fd528596baa31b262d7d7d7172b845caa /input-keys.c
parent96a34a0c0a6e42dc3cccc386f0d4809dc1facc68 (diff)
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 485dd051..11743b75 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -223,7 +223,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)