commit 4531ddaa62c0958262b6983b04d72531abe8b337
parent 78a7e2d55ccb589c26e45498ff501c64b0b17519
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed, 27 Apr 2022 12:31:24 +0800
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)
https://github.com/vim/vim/commit/e3d1f4c982bd0fe05496448d7868268c75ff7bfb
Code is N/A as Nvim already has ascii_isident(), so just port the test.
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/nvim/testdir/test_mapping.vim b/src/nvim/testdir/test_mapping.vim
@@ -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',