aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-03-10 16:40:45 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-03-10 16:43:27 +0800
commitd2d3be0a4a65f623e95b2eac1abf215233ba9f00 (patch)
tree9abcdc7c9a4c1ba205b2a662188b928c735e0c04 /src/nvim/testdir
parent9e9322b222566c0f92bb6df034d9b316317c81d5 (diff)
downloadrneovim-d2d3be0a4a65f623e95b2eac1abf215233ba9f00.tar.gz
rneovim-d2d3be0a4a65f623e95b2eac1abf215233ba9f00.tar.bz2
rneovim-d2d3be0a4a65f623e95b2eac1abf215233ba9f00.zip
vim-patch:8.2.3949: using freed memory with /\%V
Problem: Using freed memory with /\%V. Solution: Get the line again after getvvcol(). https://github.com/vim/vim/commit/4c13e5e6763c6eb36a343a2b8235ea227202e952
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_regexp_latin.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_regexp_latin.vim b/src/nvim/testdir/test_regexp_latin.vim
index a92f7e1192..538b078999 100644
--- a/src/nvim/testdir/test_regexp_latin.vim
+++ b/src/nvim/testdir/test_regexp_latin.vim
@@ -795,4 +795,12 @@ func Test_using_mark_position()
bwipe!
endfunc
+func Test_using_visual_position()
+ " this was using freed memory
+ new
+ exe "norm 0o\<Esc>\<C-V>k\<C-X>o0"
+ /\%V
+ bwipe!
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab