summaryrefslogtreecommitdiffstats
path: root/input-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-12-29 21:49:06 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-12-29 21:49:06 +0000
commitf7c42c21bacf84af52079b239a18294851fbdb3a (patch)
treec5d086441c15ac8629880b2043f95ea3758a719d /input-keys.c
parent230e39ec3558142c94858efae53c36ab0efbcf59 (diff)
Support all four of the xterm mouse modes. Based on a diff from hsim at
gmx.li.
Diffstat (limited to 'input-keys.c')
-rw-r--r--input-keys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input-keys.c b/input-keys.c
index b731f6dc..81976123 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -204,7 +204,7 @@ input_mouse(struct window_pane *wp, struct mouse_event *m)
{
char out[8];
- if (wp->screen->mode & MODE_MOUSE) {
+ if (wp->screen->mode & ALL_MOUSE_MODES) {
xsnprintf(out, sizeof out,
"\033[M%c%c%c", m->b + 32, m->x + 33, m->y + 33);
bufferevent_write(wp->event, out, strlen(out));