vim-patch:8.2.0851: can't distinguish <M-a> from accented "a" in the GUI

Problem:    Can't distinguish <M-a> from accented "a" in the GUI.
Solution:   Use another way to make mapping <C-bslash> work. (closes vim/vim#6163)
f4ae6b245a
This commit is contained in:
zeertzjq 2022-04-25 22:36:59 +08:00
parent 66747f18de
commit 6832b626ea

View File

@ -1450,13 +1450,14 @@ int merge_modifiers(int c_arg)
if (mod_mask & MOD_MASK_CTRL) {
if ((c >= '`' && c <= 0x7f) || (c >= '@' && c <= '_')) {
c &= 0x1f;
mod_mask &= ~MOD_MASK_CTRL;
if (c == 0) {
c = K_ZERO;
}
} else if (c == '6') {
// CTRL-6 is equivalent to CTRL-^
c = 0x1e;
}
if (c != c_arg) {
mod_mask &= ~MOD_MASK_CTRL;
}
}