We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbd0b0a commit 5b1affeCopy full SHA for 5b1affe
2 files changed
src/testdir/test_hlsearch.vim
@@ -32,3 +32,21 @@ function! Test_hlsearch()
32
call getchar(1)
33
enew!
34
endfunction
35
+
36
+func Test_hlsearch_hangs()
37
+ if !has('reltime') || !has('float')
38
+ return
39
+ endif
40
41
+ " This pattern takes forever to match, it should timeout.
42
+ help
43
+ let start = reltime()
44
+ set hlsearch nolazyredraw redrawtime=101
45
+ let @/ = '\%#=2\v(a|\1)*'
46
+ redraw
47
+ let elapsed = reltimefloat(reltime(start))
48
+ call assert_true(elapsed > 0.1)
49
+ call assert_true(elapsed < 1.0)
50
+ set nohlsearch redrawtime&
51
+ quit
52
+endfunc
src/version.c
@@ -764,6 +764,8 @@ static char *(features[]) =
764
765
static int included_patches[] =
766
{ /* Add new patch number below this line */
767
+/**/
768
+ 644,
769
/**/
770
643,
771
0 commit comments