diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-04-06 20:21:59 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-04-06 20:21:59 +0200 |
commit | e3d1f4c982bd0fe05496448d7868268c75ff7bfb (patch) | |
tree | e272320895bfe5bc0c6d175ddcd213370d354ae0 /src/testdir/test_mapping.vim | |
parent | e9b8b78e046b40b877c999432c4698edb3413d5d (diff) | |
download | vim-git-e3d1f4c982bd0fe05496448d7868268c75ff7bfb.tar.gz |
patch 8.2.2728: special key names don't work if 'isident' is clearedv8.2.2728
Problem: Special key names don't work if 'isident' is cleared.
Solution: Add vim_isNormalIDc() and use it for special key names.
(closes #2389)
Diffstat (limited to 'src/testdir/test_mapping.vim')
-rw-r--r-- | src/testdir/test_mapping.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/testdir/test_mapping.vim b/src/testdir/test_mapping.vim index d7e4caa91..c93562b07 100644 --- a/src/testdir/test_mapping.vim +++ b/src/testdir/test_mapping.vim @@ -445,9 +445,12 @@ func Test_list_mappings() " Remove default mappings imapclear - inoremap <C-M> CtrlM + " reset 'isident' to check it isn't used + set isident= + inoremap <C-m> CtrlM inoremap <A-S> AltS inoremap <S-/> ShiftSlash + set isident& call assert_equal([ \ 'i <S-/> * ShiftSlash', \ 'i <M-S> * AltS', |