comparison src/testdir/test_mapping.vim @ 31994:096fe1952003 v9.0.1329

patch 9.0.1329: completion of map includes simplified ones Commit: https://github.com/vim/vim/commit/997b8a015cd39141866e953651d55c705275cbd6 Author: zeertzjq <zeertzjq@outlook.com> Date: Sun Feb 19 21:00:31 2023 +0000 patch 9.0.1329: completion of map includes simplified ones Problem: Completion of map includes simplified ones. Solution: Do not complete simplified mappings. (closes https://github.com/vim/vim/issues/12013)
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 Feb 2023 22:15:03 +0100
parents fbc4d3b0302d
children f99b85fc18e7
comparison
equal deleted inserted replaced
31993:f2671bde6f4e 31994:096fe1952003
781 call assert_equal('"unabbr <buffer>', @:) 781 call assert_equal('"unabbr <buffer>', @:)
782 782
783 call feedkeys(":abbr! \<C-A>\<C-B>\"\<CR>", 'tx') 783 call feedkeys(":abbr! \<C-A>\<C-B>\"\<CR>", 'tx')
784 call assert_equal("\"abbr! \x01", @:) 784 call assert_equal("\"abbr! \x01", @:)
785 785
786 " Multiple matches for a map 786 " When multiple matches have the same {lhs}, it should only appear once.
787 nmap ,f /H<CR> 787 " The simplified form should also not be included.
788 omap ,f /H<CR> 788 nmap ,<C-F> /H<CR>
789 omap ,<C-F> /H<CR>
789 call feedkeys(":map ,\<C-A>\<C-B>\"\<CR>", 'tx') 790 call feedkeys(":map ,\<C-A>\<C-B>\"\<CR>", 'tx')
790 call assert_equal('"map ,f', @:) 791 call assert_equal('"map ,<C-F>', @:)
791 mapclear 792 mapclear
792 endfunc 793 endfunc
793 794
794 func GetAbbrText() 795 func GetAbbrText()
795 unabbr hola 796 unabbr hola