patch 9.0.1329: completion of map includes simplified ones
Problem: Completion of map includes simplified ones.
Solution: Do not complete simplified mappings. (closes #12013)
diff --git a/src/testdir/test_mapping.vim b/src/testdir/test_mapping.vim
index 0390d4f..d631274 100644
--- a/src/testdir/test_mapping.vim
+++ b/src/testdir/test_mapping.vim
@@ -783,11 +783,12 @@
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