mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 19:39:04 +00:00
Sync OpenBSD patchset 568:
Continue rather than returning if not a mouse key, to avoid hanging on any function key...
This commit is contained in:
parent
c12e0b0708
commit
66bf2e2f04
@ -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>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -467,8 +467,7 @@ tty_keys_next(struct tty *tty)
|
|||||||
key = KEYC_MOUSE;
|
key = KEYC_MOUSE;
|
||||||
goto handle_key;
|
goto handle_key;
|
||||||
case -1: /* no, or not valid */
|
case -1: /* no, or not valid */
|
||||||
evbuffer_drain(tty->event->input, size);
|
break;
|
||||||
return (1);
|
|
||||||
case 1: /* partial */
|
case 1: /* partial */
|
||||||
goto partial_key;
|
goto partial_key;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user