diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-01-26 21:33:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-26 21:33:53 +0100 |
commit | 17e2938b100070d91bd956c8734760ca16f6d3f2 (patch) | |
tree | 8c031c6f12c3b30bc18ea6dc62b41b2c281e0c69 /src/nvim/testdir | |
parent | 20482a2b83b9ea56ce226239ebb6c0fe7819c6f1 (diff) | |
parent | dda1c8edda86a50d802f777e5ba2379f7ccd6ae8 (diff) | |
download | rneovim-17e2938b100070d91bd956c8734760ca16f6d3f2.tar.gz rneovim-17e2938b100070d91bd956c8734760ca16f6d3f2.tar.bz2 rneovim-17e2938b100070d91bd956c8734760ca16f6d3f2.zip |
Merge pull request #17132 from zeertzjq/vim-8.2.3611
vim-patch:8.2.{3494,3611,3613}: two Visual mode crash fixes
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_visual.vim | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_visual.vim b/src/nvim/testdir/test_visual.vim index d58ca92a2f..e1e7765e06 100644 --- a/src/nvim/testdir/test_visual.vim +++ b/src/nvim/testdir/test_visual.vim @@ -1120,7 +1120,35 @@ 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_block_ctrl_w_f() + " Emtpy block selected in new buffer should not result in an error. + au! BufNew foo sil norm f + edit foo + + au! BufNew +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 |