diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-11-26 22:26:52 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-11-26 22:26:52 +0000 |
commit | 4c4cd4aadaca53d9e57c923f2de68758da494c24 (patch) | |
tree | 36bd1c7d8e0813358a9387c7090af0f289a3f138 | |
parent | 80337ea5f361b3b9e2644488407f689fc6ed5f3c (diff) |
Continue rather than returning if not a mouse key, to avoid hanging on any
function key...
-rw-r--r-- | usr.bin/tmux/tty-keys.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tmux/tty-keys.c b/usr.bin/tmux/tty-keys.c index cdbcb7d9587..5aef83ea7bc 100644 --- a/usr.bin/tmux/tty-keys.c +++ b/usr.bin/tmux/tty-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty-keys.c,v 1.23 2009/11/26 21:37:13 nicm Exp $ */ +/* $OpenBSD: tty-keys.c,v 1.24 2009/11/26 22:26:51 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -467,8 +467,7 @@ tty_keys_next(struct tty *tty) key = KEYC_MOUSE; goto handle_key; case -1: /* no, or not valid */ - evbuffer_drain(tty->event->input, size); - return (1); + break; case 1: /* partial */ goto partial_key; } |