Don't limit width and height to 222 in standard mouse mode.

This commit is contained in:
Nicholas Marriott 2013-05-07 11:00:16 +00:00
parent 2555ac58cc
commit 66f4c60a84

View File

@ -227,7 +227,7 @@ input_mouse(struct window_pane *wp, struct session *s, struct mouse_event *m)
len += utf8_split2(m->x + 33, &buf[len]); len += utf8_split2(m->x + 33, &buf[len]);
len += utf8_split2(m->y + 33, &buf[len]); len += utf8_split2(m->y + 33, &buf[len]);
} else { } else {
if (m->xb > 223 || m->x >= 222 || m->y > 222) if (m->xb > 223)
return; return;
len = xsnprintf(buf, sizeof buf, "\033[M"); len = xsnprintf(buf, sizeof buf, "\033[M");
buf[len++] = m->xb + 32; buf[len++] = m->xb + 32;