diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-01-18 10:05:31 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-01-18 10:05:31 +0800 |
| commit | 0a65d821fcc3fe1cab52b4102f2a55b7aa89df03 (patch) | |
| tree | 9f3f793a871e3052c8009e4d0d249d31bc78c60a /src/nvim/testdir | |
| parent | fcf5dd34fdfde3a6632b96a88f66c1053cba08d1 (diff) | |
| download | rneovim-0a65d821fcc3fe1cab52b4102f2a55b7aa89df03.tar.gz rneovim-0a65d821fcc3fe1cab52b4102f2a55b7aa89df03.tar.bz2 rneovim-0a65d821fcc3fe1cab52b4102f2a55b7aa89df03.zip | |
vim-patch:8.2.3494: illegal memory access in utf_head_off
Problem: Illegal memory access in utf_head_off.
Solution: Check cursor position when reselecting the Visual area.
(closes vim/vim#8963)
https://github.com/vim/vim/commit/b07626d4afa73dd2af0f03c0d59eed25ee159ef9
Including the XTest_beval -> XTest_block from patch 8.2.3096.
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_visual.vim | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_visual.vim b/src/nvim/testdir/test_visual.vim index d58ca92a2f..2e26da4947 100644 --- a/src/nvim/testdir/test_visual.vim +++ b/src/nvim/testdir/test_visual.vim @@ -1120,7 +1120,27 @@ func Test_visual_block_with_virtualedit() " clean up call term_sendkeys(buf, "\<Esc>") call StopVimInTerminal(buf) - call delete('XTest_beval') + call delete('XTest_block') +endfunc + +func Test_visual_reselect_with_count() + " this was causing an illegal memory access + let lines =<< trim END + + + + : + r<sfile> + exe "%norm e3\<c-v>kr\t" + : + + : + END + call writefile(lines, 'XvisualReselect') + source XvisualReselect + + bwipe! + call delete('XvisualReselect') endfunc |