summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-04 22:22:11 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-04 22:22:11 +0200
commit46cd43bda102c3782bba1c4c629836e010734d77 (patch)
tree685e27f1f47839b3789eb0947c8808dae73942aa /src/getchar.c
parent852ea366d6432e719ffdd95e9fb7d49a9a960187 (diff)
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c
index ace56863e7..fcfad9dc0f 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