aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-12 18:06:17 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-12 18:09:43 -0400
commitcfb2383c26847e9332d1283fa15753b09d322f2f (patch)
treebf9ec7c1ab53da9996f07d0007f42d97eee15584 /src/nvim/testdir
parent3fd2efdb26a50e252aa0c463ecd4f44755fbd744 (diff)
downloadrneovim-cfb2383c26847e9332d1283fa15753b09d322f2f.tar.gz
rneovim-cfb2383c26847e9332d1283fa15753b09d322f2f.tar.bz2
rneovim-cfb2383c26847e9332d1283fa15753b09d322f2f.zip
vim-patch:8.0.1397: pattern with \& following nothing gives an error
Problem: Pattern with \& following nothing gives an error. Solution: Emit an empty node when needed. https://github.com/vim/vim/commit/890dd05492d88d48eee1dda7f7a1811d027ce7ca
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_search.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_search.vim b/src/nvim/testdir/test_search.vim
index 42c56dced7..7663c9e283 100644
--- a/src/nvim/testdir/test_search.vim
+++ b/src/nvim/testdir/test_search.vim
@@ -472,3 +472,11 @@ endfunc
func Test_search_undefined_behaviour2()
call search("\%UC0000000")
endfunc
+
+" This was causing E874. Also causes an invalid read?
+func Test_look_behind()
+ new
+ call setline(1, '0\|\&\n\@<=')
+ call search(getline("."))
+ bwipe!
+endfunc