mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
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:
@@ -1450,13 +1450,14 @@ int merge_modifiers(int c_arg)
|
|||||||
if (mod_mask & MOD_MASK_CTRL) {
|
if (mod_mask & MOD_MASK_CTRL) {
|
||||||
if ((c >= '`' && c <= 0x7f) || (c >= '@' && c <= '_')) {
|
if ((c >= '`' && c <= 0x7f) || (c >= '@' && c <= '_')) {
|
||||||
c &= 0x1f;
|
c &= 0x1f;
|
||||||
mod_mask &= ~MOD_MASK_CTRL;
|
|
||||||
if (c == 0) {
|
if (c == 0) {
|
||||||
c = K_ZERO;
|
c = K_ZERO;
|
||||||
}
|
}
|
||||||
} else if (c == '6') {
|
} else if (c == '6') {
|
||||||
// CTRL-6 is equivalent to CTRL-^
|
// CTRL-6 is equivalent to CTRL-^
|
||||||
c = 0x1e;
|
c = 0x1e;
|
||||||
|
}
|
||||||
|
if (c != c_arg) {
|
||||||
mod_mask &= ~MOD_MASK_CTRL;
|
mod_mask &= ~MOD_MASK_CTRL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user