aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2019-02-13 12:53:25 +0100
committerPřemysl Janouch <p@janouch.name>2019-02-13 12:53:25 +0100
commit510a53b845b1a2e9f47e91c1bf4eb3de7527fb34 (patch)
treef3ab781005aec7a09bc213d673bb54334b7f17dc
parent6e67469e3ff8d82ac28a75bb0d9d4185ebfc7900 (diff)
downloaddesktop-tools-510a53b845b1a2e9f47e91c1bf4eb3de7527fb34.tar.gz
desktop-tools-510a53b845b1a2e9f47e91c1bf4eb3de7527fb34.tar.xz
desktop-tools-510a53b845b1a2e9f47e91c1bf4eb3de7527fb34.zip
paswitch: fix M-Esc
-rw-r--r--paswitch.c3
1 files changed, 2 insertions, 1 deletions
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