summaryrefslogtreecommitdiffstats
path: root/tty-keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'tty-keys.c')
-rw-r--r--tty-keys.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tty-keys.c b/tty-keys.c
index a64c29b0..8f90b6ec 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -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;
}