summaryrefslogtreecommitdiffstats
path: root/src/map.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-02-19 21:00:31 +0000
committerBram Moolenaar <Bram@vim.org>2023-02-19 21:00:31 +0000
commit997b8a015cd39141866e953651d55c705275cbd6 (patch)
tree650d8de79484cd17178e80b84484ac9e2d437dce /src/map.c
parent5b9f57262fdadf460e6355abf1eee95b4f96abe8 (diff)
patch 9.0.1329: completion of map includes simplified onesv9.0.1329
Problem: Completion of map includes simplified ones. Solution: Do not complete simplified mappings. (closes #12013)
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.c b/src/map.c
index 9be67cd74b..9a6cdb143c 100644
--- a/src/map.c
+++ b/src/map.c
@@ -180,7 +180,7 @@ showmap(
len = msg_outtrans_special(mp->m_keys, TRUE, 0);
do
{
- msg_putchar(' '); // padd with blanks
+ msg_putchar(' '); // pad with blanks
++len;
} while (len < 12);
@@ -1445,7 +1445,7 @@ ExpandMappings(
mp = maphash[hash];
for (; mp; mp = mp->m_next)
{
- if (!(mp->m_mode & expand_mapmodes))
+ if (mp->m_simplified || !(mp->m_mode & expand_mapmodes))
continue;
p = translate_mapping(mp->m_keys);