diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-04 22:22:11 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-04 22:22:11 +0200 |
commit | 46cd43bda102c3782bba1c4c629836e010734d77 (patch) | |
tree | 685e27f1f47839b3789eb0947c8808dae73942aa /src/getchar.c | |
parent | 852ea366d6432e719ffdd95e9fb7d49a9a960187 (diff) | |
download | vim-git-46cd43bda102c3782bba1c4c629836e010734d77.tar.gz |
patch 8.2.0904: assuming modifyOtherKeys for rhs of mappingv8.2.0904
Problem: Assuming modifyOtherKeys for rhs of mapping.
Solution: Ignore seenModifyOtherKeys for mapped characters. (closes #6200)
Diffstat (limited to 'src/getchar.c')
-rw-r--r-- | src/getchar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c index ace56863e..fcfad9dc0 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -2355,7 +2355,8 @@ handle_mapping( // Skip ":lmap" mappings if keys were mapped. if (mp->m_keys[0] == tb_c1 && (mp->m_mode & local_State) - && !(mp->m_simplified && seenModifyOtherKeys) + && !(mp->m_simplified && seenModifyOtherKeys + && typebuf.tb_maplen == 0) && ((mp->m_mode & LANGMAP) == 0 || typebuf.tb_maplen == 0)) { #ifdef FEAT_LANGMAP |