rcfile: do set the meta flag for plain <Meta+ASCII> combinations

The meta flag needs to be suppressed only for the self-defined
<Meta+arrow> key codes.

This fixes https://savannah.gnu.org/bugs/?57643.

Bug existed since commit 5130c35b from a few hours ago.
master
Benno Schulenberg 2020-01-20 16:30:51 +01:00
parent 9e3fca4021
commit 5e48c36877
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}