diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-06-17 20:08:20 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-06-17 20:08:20 +0200 |
commit | 1ef9bbe215e13a273e74fccaddd8fc5a42c76b6e (patch) | |
tree | e7e91f215db3694732b431b3ff76eaa6008827d2 /src/testdir/test_hlsearch.vim | |
parent | 5b1affefd0e96154517ec6f71300086ae6d22d24 (diff) | |
download | vim-git-1ef9bbe215e13a273e74fccaddd8fc5a42c76b6e.tar.gz |
patch 8.0.0645: no error for illegal back reference in NFA enginev8.0.0645
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)
Diffstat (limited to 'src/testdir/test_hlsearch.vim')
-rw-r--r-- | src/testdir/test_hlsearch.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_hlsearch.vim b/src/testdir/test_hlsearch.vim index b934d38e1..e9790bb9e 100644 --- a/src/testdir/test_hlsearch.vim +++ b/src/testdir/test_hlsearch.vim @@ -38,11 +38,11 @@ func Test_hlsearch_hangs() return endif - " This pattern takes forever to match, it should timeout. + " This pattern takes a long time to match, it should timeout. help let start = reltime() set hlsearch nolazyredraw redrawtime=101 - let @/ = '\%#=2\v(a|\1)*' + let @/ = '\%#=1a*.*X\@<=b*' redraw let elapsed = reltimefloat(reltime(start)) call assert_true(elapsed > 0.1) |