summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_visual.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-25 21:26:17 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-25 21:26:17 +0000
commit44db8213d38c39877d2148eff6a72f4beccfb94e (patch)
treeeb335ea046fce7c378c65893ddb4ea2c1e27458b /src/testdir/test_visual.vim
parent806d037671e133bd28a7864248763f643967973a (diff)
patch 8.2.4219: reading before the start of the linev8.2.4219
Problem: Reading before the start of the line. Solution: Check boundary before trying to read the character.
Diffstat (limited to 'src/testdir/test_visual.vim')
-rw-r--r--src/testdir/test_visual.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_visual.vim b/src/testdir/test_visual.vim
index b2beda08d0..af54615c48 100644
--- a/src/testdir/test_visual.vim
+++ b/src/testdir/test_visual.vim
@@ -1247,6 +1247,13 @@ func Test_visual_put_blockedit_zy_and_zp()
bw!
endfunc
+func Test_visual_block_yank_zy()
+ new
+ " this was reading before the start of the line
+ exe "norm o\<C-T>\<Esc>\<C-V>zy"
+ bwipe!
+endfunc
+
func Test_visual_block_with_virtualedit()
CheckScreendump