From 5e48c368772fa3c8665aa00412d9a4ac90576275 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 20 Jan 2020 16:30:51 +0100 Subject: [PATCH] rcfile: do set the meta flag for plain combinations The meta flag needs to be suppressed only for the self-defined key codes. This fixes https://savannah.gnu.org/bugs/?57643. Bug existed since commit 5130c35b from a few hours ago. --- src/global.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/global.c b/src/global.c index 181e28eb..0cc24bf2 100644 --- a/src/global.c +++ b/src/global.c @@ -520,7 +520,7 @@ int keycode_from_string(const char *keystring) void assign_keyinfo(keystruct *s, const char *keystring, const int keycode) { s->keystr = keystring; - s->meta = (keystring[0] == 'M' && keycode == 0); + s->meta = (keystring[0] == 'M' && keycode < 0x7F); s->keycode = (keycode ? keycode : keycode_from_string(keystring)); }