commit 6832b626ea1b3413c445dfc23f4d921335dfeaf3
parent 66747f18ded775e2c0b6bac73cee18a3752086af
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon, 25 Apr 2022 22:36:59 +0800
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)
https://github.com/vim/vim/commit/f4ae6b245a54f11dd967d06b80f30e5abf55fb82
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
@@ -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;
}
}