From 1ef9bbe215e13a273e74fccaddd8fc5a42c76b6e Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 17 Jun 2017 20:08:20 +0200 Subject: patch 8.0.0645: no error for illegal back reference in NFA engine Problem: The new regexp engine does not give an error for using a back reference where it is not allowed. (Dominique Pelle) Solution: Check the back reference like the old engine. (closes #1774) --- src/testdir/test_statusline.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/testdir/test_statusline.vim') diff --git a/src/testdir/test_statusline.vim b/src/testdir/test_statusline.vim index cf85bd58a..351b119ac 100644 --- a/src/testdir/test_statusline.vim +++ b/src/testdir/test_statusline.vim @@ -223,7 +223,7 @@ func Test_statusline() set statusline=ab%(cd%q%)de call assert_match('^abde\s*$', s:get_statusline()) copen - call assert_match('^abcd\[Quickfix List\1]de\s*$', s:get_statusline()) + call assert_match('^abcd\[Quickfix List]de\s*$', s:get_statusline()) cclose " %#: Set highlight group. The name must follow and then a # again. -- cgit v1.2.1