diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-05-09 19:19:07 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-05-09 19:19:21 +0800 |
| commit | db506d991d80eb12016564eb62b5f636e7c8c836 (patch) | |
| tree | 7678419391e69208de255f1f5b28e8140c4c6a19 /src/nvim/testdir/test_mapping.vim | |
| parent | 41ce7b07e2946bdde0061d7af5b4446efafa5089 (diff) | |
| download | rneovim-db506d991d80eb12016564eb62b5f636e7c8c836.tar.gz rneovim-db506d991d80eb12016564eb62b5f636e7c8c836.tar.bz2 rneovim-db506d991d80eb12016564eb62b5f636e7c8c836.zip | |
vim-patch:8.2.4924: maparg() may return a string that cannot be reused
Problem: maparg() may return a string that cannot be reused.
Solution: use msg_outtrans_special() instead of str2special().
(closes vim/vim#10384)
https://github.com/vim/vim/commit/0519ce00394474055bd58c089ea90a19986443eb
Diffstat (limited to 'src/nvim/testdir/test_mapping.vim')
| -rw-r--r-- | src/nvim/testdir/test_mapping.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_mapping.vim b/src/nvim/testdir/test_mapping.vim index b5158295b4..995511cddf 100644 --- a/src/nvim/testdir/test_mapping.vim +++ b/src/nvim/testdir/test_mapping.vim @@ -488,6 +488,13 @@ func Test_list_mappings() call assert_equal(['n <M-…> foo'], \ execute('nmap <M-…>')->trim()->split("\n")) + " illegal bytes + let str = ":\x7f:\x80:\x90:\xd0:" + exe 'nmap foo ' .. str + call assert_equal(['n foo ' .. strtrans(str)], + \ execute('nmap foo')->trim()->split("\n")) + unlet str + " map to CTRL-V exe "nmap ,k \<C-V>" call assert_equal(['n ,k <Nop>'], |