diff options
author | 2013-05-07 11:00:16 +0000 | |
---|---|---|
committer | 2013-05-07 11:00:16 +0000 | |
commit | d853666659f1a17f63f3db5f6a797c22c2327866 (patch) | |
tree | a78aa853f962d716a8d955b8682bf0a9d08b7a92 /usr.bin/tmux/input-keys.c | |
parent | alloc the size of the struct not the size of a pointer to it (diff) | |
download | wireguard-openbsd-d853666659f1a17f63f3db5f6a797c22c2327866.tar.xz wireguard-openbsd-d853666659f1a17f63f3db5f6a797c22c2327866.zip |
Don't limit width and height to 222 in standard mouse mode.
Diffstat (limited to 'usr.bin/tmux/input-keys.c')
-rw-r--r-- | usr.bin/tmux/input-keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/input-keys.c b/usr.bin/tmux/input-keys.c index fb36dfeb195..f38ee8c422b 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.32 2013/03/24 09:57:59 nicm Exp $ */ +/* $OpenBSD: input-keys.c,v 1.33 2013/05/07 11:00:16 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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->y + 33, &buf[len]); } else { - if (m->xb > 223 || m->x >= 222 || m->y > 222) + if (m->xb > 223) return; len = xsnprintf(buf, sizeof buf, "\033[M"); buf[len++] = m->xb + 32; |