paswitch: fix M-Esc

This commit is contained in:
Přemysl Eric Janouch 2019-02-13 12:53:25 +01:00
parent 6e67469e3f
commit 510a53b845
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 2 additions and 1 deletions

View File

@ -791,8 +791,9 @@ read_key_sequence (const char *buf, size_t len)
return ++p - buf;
return -escapes;
}
// We don't know this sequence, so just return M-Esc
if (escapes == 2)
return -escapes;
return escapes;
}
// Shift state encodings aren't going to work, though anything else should