diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-27 12:31:24 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-04-29 15:51:04 +0800 |
commit | 4531ddaa62c0958262b6983b04d72531abe8b337 (patch) | |
tree | 9e9aee33dc02c5796c96478bf5bad21b7b03e3c7 | |
parent | 78a7e2d55ccb589c26e45498ff501c64b0b17519 (diff) | |
download | rneovim-4531ddaa62c0958262b6983b04d72531abe8b337.tar.gz rneovim-4531ddaa62c0958262b6983b04d72531abe8b337.tar.bz2 rneovim-4531ddaa62c0958262b6983b04d72531abe8b337.zip |
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.
-rw-r--r-- | src/nvim/testdir/test_mapping.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_mapping.vim b/src/nvim/testdir/test_mapping.vim index f03d157fac..8c399ff3b1 100644 --- 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', |