len = msg_outtrans_special(mp->m_keys, TRUE, 0);
do
{
- msg_putchar(' '); // padd with blanks
+ msg_putchar(' '); // pad with blanks
++len;
} while (len < 12);
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);
call feedkeys(":abbr! \<C-A>\<C-B>\"\<CR>", 'tx')
call assert_equal("\"abbr! \x01", @:)
- " Multiple matches for a map
- nmap ,f /H<CR>
- omap ,f /H<CR>
+ " When multiple matches have the same {lhs}, it should only appear once.
+ " The simplified form should also not be included.
+ nmap ,<C-F> /H<CR>
+ omap ,<C-F> /H<CR>
call feedkeys(":map ,\<C-A>\<C-B>\"\<CR>", 'tx')
- call assert_equal('"map ,f', @:)
+ call assert_equal('"map ,<C-F>', @:)
mapclear
endfunc