1
0
forked from aniani/vim

patch 8.2.2728: special key names don't work if 'isident' is cleared

Problem:    Special key names don't work if 'isident' is cleared.
Solution:   Add vim_isNormalIDc() and use it for special key names.
            (closes #2389)
This commit is contained in:
Bram Moolenaar
2021-04-06 20:21:59 +02:00
parent e9b8b78e04
commit e3d1f4c982
5 changed files with 20 additions and 4 deletions

View File

@@ -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',