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 vim/vim#2389)
e3d1f4c982

Code is N/A as Nvim already has ascii_isident(), so just port the test.
This commit is contained in:
zeertzjq 2022-04-27 12:31:24 +08:00
parent 78a7e2d55c
commit 4531ddaa62

View File

@ -433,9 +433,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',