diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-03-30 07:44:12 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-30 07:44:12 +0800 |
| commit | 2f378237037150f3c7405fec1d8762e73067d223 (patch) | |
| tree | c27349a2549df20f53db2032c0fdda4e24915096 /src/nvim/testdir | |
| parent | e7ac16425c2bcbe26167d89134c51bf412c7b15e (diff) | |
| download | rneovim-2f378237037150f3c7405fec1d8762e73067d223.tar.gz rneovim-2f378237037150f3c7405fec1d8762e73067d223.tar.bz2 rneovim-2f378237037150f3c7405fec1d8762e73067d223.zip | |
vim-patch:8.2.4646: using buffer line after it has been freed (#17907)
Problem: Using buffer line after it has been freed in old regexp engine.
Solution: After getting mark get the line again.
https://github.com/vim/vim/commit/b55986c52d4cd88a22d0b0b0e8a79547ba13e1d5
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_regexp_latin.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_regexp_latin.vim b/src/nvim/testdir/test_regexp_latin.vim index a0f5ebfb9f..cbd45696a9 100644 --- a/src/nvim/testdir/test_regexp_latin.vim +++ b/src/nvim/testdir/test_regexp_latin.vim @@ -789,10 +789,17 @@ endfunc func Test_using_mark_position() " this was using freed memory + " new engine new norm O0 call assert_fails("s/\\%')", 'E486:') bwipe! + + " old engine + new + norm O0 + call assert_fails("s/\\%#=1\\%')", 'E486:') + bwipe! endfunc func Test_using_visual_position() |