mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 23:18:33 +00:00
vim-patch:8.2.0916: mapping with partly modifyOtherKeys code does not work
Problem: Mapping with partly modifyOtherKeys code does not work. Solution: If there is no mapping with a separate modifier include the modifier in the key and then try mapping again. (closes vim/vim#6200)975a880a13
Cherry-pick applicable part of put_string_in_typebuf(). Revert related changes from10a5825
. Use KEYLEN_PART_KEY for incomplete modifier sequence. Omit test as it sends terminal codes. Use a Lua test instead.
This commit is contained in:
@@ -5640,7 +5640,7 @@ int get_literal(bool no_simplify)
|
||||
for (;;) {
|
||||
nc = plain_vgetc();
|
||||
if (!no_simplify) {
|
||||
nc = merge_modifiers(nc);
|
||||
nc = merge_modifiers(nc, &mod_mask);
|
||||
}
|
||||
if ((mod_mask & ~MOD_MASK_SHIFT) != 0) {
|
||||
// A character with non-Shift modifiers should not be a valid
|
||||
|
Reference in New Issue
Block a user