mirror of
https://github.com/tmux/tmux.git
synced 2024-11-20 03:18:49 +00:00
The input key should be a u_char. Fixes top-bit-set input problem reported by
ajacoutot@.
This commit is contained in:
parent
daf150c38d
commit
591fa23f6e
@ -364,7 +364,7 @@ tty_keys_next(struct tty *tty)
|
|||||||
|
|
||||||
/* If a normal key, return it. */
|
/* If a normal key, return it. */
|
||||||
if (*buf != '\033') {
|
if (*buf != '\033') {
|
||||||
key = *buf;
|
key = (u_char) *buf;
|
||||||
evbuffer_drain(tty->event->input, 1);
|
evbuffer_drain(tty->event->input, 1);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user