diff options
author | Thomas Adam <thomas@xteddy.org> | 2018-10-28 16:02:37 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2018-10-28 16:02:37 +0000 |
commit | 0a54a07909ec1255332792fc880e73f19d3f5e53 (patch) | |
tree | 129008d47310ad559056c53d588f1648aeb340d1 | |
parent | 0cefdff1b6fec594a8f6c3b4a8fdd2342de64373 (diff) | |
parent | 65dd7345e069753c57f10f34a5efc56339ffbeb0 (diff) | |
download | rtmux-0a54a07909ec1255332792fc880e73f19d3f5e53.tar.gz rtmux-0a54a07909ec1255332792fc880e73f19d3f5e53.tar.bz2 rtmux-0a54a07909ec1255332792fc880e73f19d3f5e53.zip |
Merge branch 'obsd-master'
-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 */ |