0x7f is a valid key.

This commit is contained in:
nicm 2015-11-16 22:57:51 +00:00
parent 661d0dfac9
commit 775fb562bd

View File

@ -161,7 +161,7 @@ input_key(struct window_pane *wp, key_code key, struct mouse_event *m)
* if necessary. If it is a UTF-8 key, split it and send it.
*/
justkey = (key & ~KEYC_ESCAPE);
if (key != KEYC_NONE && justkey < 0x7f) {
if (key != KEYC_NONE && justkey <= 0x7f) {
if (key & KEYC_ESCAPE)
bufferevent_write(wp->event, "\033", 1);
ud.data[0] = justkey;