diff src/testdir/test_search.vim @ 13043:307f2622826f v8.0.1397

patch 8.0.1397: pattern with & following nothing gives an error commit https://github.com/vim/vim/commit/890dd05492d88d48eee1dda7f7a1811d027ce7ca Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 16 19:59:37 2017 +0100 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.
author Christian Brabandt <cb@256bit.org>
date Sat, 16 Dec 2017 20:00:05 +0100
parents 3c09e451af3a
children a80082fd1a1d
line wrap: on
line diff
--- a/src/testdir/test_search.vim
+++ b/src/testdir/test_search.vim
@@ -721,3 +721,11 @@ func Test_search_multibyte()
   enew!
   let &encoding = save_enc
 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