diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-26 12:29:43 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-26 12:29:43 +0100 |
commit | abeb09b2c53054513812d1e56716e2a5abe8f354 (patch) | |
tree | f39b515cb9e164b9f03b935f524e191f5822c97a /src/testdir/test_mapping.vim | |
parent | 87f74106f96737e7b8ceaafe1a131aa718077de6 (diff) |
patch 8.2.4828: fix for unmapping simplified key not fully testedv8.2.4828
Problem: Fix for unmapping simplified key not fully tested.
Solution: Add a test case. (closes #10292)
Diffstat (limited to 'src/testdir/test_mapping.vim')
-rw-r--r-- | src/testdir/test_mapping.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/testdir/test_mapping.vim b/src/testdir/test_mapping.vim index e0008d62a2..b413f4fc34 100644 --- a/src/testdir/test_mapping.vim +++ b/src/testdir/test_mapping.vim @@ -1627,7 +1627,7 @@ func Test_mouse_drag_insert_map() set mouse& endfunc -func Test_unmap_simplfied() +func Test_unmap_simplifiable() map <C-I> foo map <Tab> bar call assert_equal('foo', maparg('<C-I>')) @@ -1636,6 +1636,11 @@ func Test_unmap_simplfied() call assert_equal('', maparg('<C-I>')) call assert_equal('bar', maparg('<Tab>')) unmap <Tab> + + map <C-I> foo + unmap <Tab> + " This should not error + unmap <C-I> endfunc " vim: shiftwidth=2 sts=2 expandtab |