From 510a53b845b1a2e9f47e91c1bf4eb3de7527fb34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Wed, 13 Feb 2019 12:53:25 +0100 Subject: [PATCH] paswitch: fix M-Esc --- paswitch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paswitch.c b/paswitch.c index 13bfe47..6d55533 100644 --- a/paswitch.c +++ b/paswitch.c @@ -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