summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2014-07-21 20:45:36 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2014-07-21 20:45:36 +0000
commitca205f291161be892e49c179a650b9d4384aae7b (patch)
tree23810bd3431ca2bc554f3eac3f19bd974b8f30b4 /usr.bin
parent76338e815bfd846c873988796526d469daa23b34 (diff)
Revert the up/down wheel emulation for now, there will be a better way
to do this along later for those who want it.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/input-keys.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/usr.bin/tmux/input-keys.c b/usr.bin/tmux/input-keys.c
index fd3d3c03ae2..c053f2b8b36 100644
--- a/usr.bin/tmux/input-keys.c
+++ b/usr.bin/tmux/input-keys.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input-keys.c,v 1.38 2014/07/21 10:25:48 nicm Exp $ */
+/* $OpenBSD: input-keys.c,v 1.39 2014/07/21 20:45:35 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -205,21 +205,6 @@ input_mouse(struct window_pane *wp, struct session *s, struct mouse_event *m)
char buf[40];
size_t len;
struct paste_buffer *pb;
- u_int i;
-
- /*
- * If the alternate screen is active and hasn't enabled the mouse, send
- * up and down key presses for the mouse wheel.
- */
- if (wp->saved_grid != NULL && !(wp->screen->mode & ALL_MOUSE_MODES)) {
- for (i = 0; i < m->scroll; i++) {
- if (m->wheel == MOUSE_WHEEL_UP)
- input_key(wp, KEYC_UP);
- else
- input_key(wp, KEYC_DOWN);
- }
- return;
- }
if (wp->screen->mode & ALL_MOUSE_MODES) {
/*