diff options
author | nicm <nicm> | 2018-10-28 15:34:27 +0000 |
---|---|---|
committer | nicm <nicm> | 2018-10-28 15:34:27 +0000 |
commit | 65dd7345e069753c57f10f34a5efc56339ffbeb0 (patch) | |
tree | 5885dae049047f789420364d6f1ac454e3108269 | |
parent | fc41bf46acaccb3da8d0588b7e1bbcfebc6442f6 (diff) | |
download | rtmux-65dd7345e069753c57f10f34a5efc56339ffbeb0.tar.gz rtmux-65dd7345e069753c57f10f34a5efc56339ffbeb0.tar.bz2 rtmux-65dd7345e069753c57f10f34a5efc56339ffbeb0.zip |
Do not check for a key again without an escape if only \033 is present.
-rw-r--r-- | tty-keys.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -624,7 +624,7 @@ first_key: * If not a complete key, look for key with an escape prefix (meta * modifier). */ - if (*buf == '\033') { + if (*buf == '\033' && len > 1) { /* Look for a key without the escape. */ n = tty_keys_next1(tty, buf + 1, len - 1, &key, &size, expired); if (n == 0) { /* found */ |