Continue rather than returning if not a mouse key, to avoid hanging on any

function key...
pull/1/head
Nicholas Marriott 2009-11-26 22:26:51 +00:00
parent 4ca857e0e9
commit ba5404d93e
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}