aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-01-26 16:47:39 +0100
committerChristian Clason <c.clason@uni-graz.at>2022-01-26 22:02:56 +0100
commit540264306b6340bdd8133cd3307b169f7708c4d6 (patch)
tree642c79cdb1a78647d0ad400fb02e5b90fb67e996 /src/nvim/testdir
parente9247b0d5da8f2158b8a64c736919faa7d708519 (diff)
downloadrneovim-540264306b6340bdd8133cd3307b169f7708c4d6.tar.gz
rneovim-540264306b6340bdd8133cd3307b169f7708c4d6.tar.bz2
rneovim-540264306b6340bdd8133cd3307b169f7708c4d6.zip
vim-patch:8.2.4219: reading before the start of the line
Problem: Reading before the start of the line. Solution: Check boundary before trying to read the character. https://github.com/vim/vim/commit/44db8213d38c39877d2148eff6a72f4beccfb94e
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_visual.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_visual.vim b/src/nvim/testdir/test_visual.vim
index 8520c8e900..b087c88c35 100644
--- a/src/nvim/testdir/test_visual.vim
+++ b/src/nvim/testdir/test_visual.vim
@@ -1103,6 +1103,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