diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-11-28 14:51:37 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-11-28 14:51:37 +0000 |
commit | 66bf2e2f040b9fc1a6f06f5076858c810b54b194 (patch) | |
tree | 5670397394c3d36b288018818279adefccc54654 /tty-keys.c | |
parent | c12e0b0708ee1aa16608eff9d0ad3f0628cbac0f (diff) |
Sync OpenBSD patchset 568:
Continue rather than returning if not a mouse key, to avoid hanging on any
function key...
Diffstat (limited to 'tty-keys.c')
-rw-r--r-- | tty-keys.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: tty-keys.c,v 1.49 2009-11-28 14:50:37 tcunha Exp $ */ +/* $Id: tty-keys.c,v 1.50 2009-11-28 14:51:37 tcunha 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; } |