diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-03-03 21:11:52 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-03-03 21:11:52 +0000 |
commit | 1c73b65229c25e3c1fd8824ba958f7cc4d604f9c (patch) | |
tree | 7608152b1c557f616b3f14e277d2d701c45faf45 /src/testdir | |
parent | f77a7f704ffd0ca1050e82f609c8b8bd61863277 (diff) |
patch 9.0.1376: accessing invalid memory with put in Visual block modev9.0.1376
Problem: Accessing invalid memory with put in Visual block mode.
Solution: Adjust the cursor column if needed.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_put.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test_put.vim b/src/testdir/test_put.vim index 66438bd3f6..a6cea74efb 100644 --- a/src/testdir/test_put.vim +++ b/src/testdir/test_put.vim @@ -231,5 +231,16 @@ func Test_put_visual_mode() set selection& endfunc +func Test_put_visual_block_mode() + enew + exe "norm 0R\<CR>\<C-C>V" + sil exe "norm \<C-V>c \<MiddleDrag>" + set ve=all + sil norm vz=p + + bwipe! + set ve= +endfunc + " vim: shiftwidth=2 sts=2 expandtab |