diff options
| author | Billy Su <g4691821@gmail.com> | 2019-03-03 23:55:44 +0800 |
|---|---|---|
| committer | Billy Su <g4691821@gmail.com> | 2019-03-08 00:06:28 +0800 |
| commit | 0a471e009a1410a822384321dbd48a36b0117c5c (patch) | |
| tree | 6b0975eb189ebe23fd12fafb5e9d6d432070e214 /src/nvim/testdir | |
| parent | fbd8209286373843b7e9b4151a1432fc4555484d (diff) | |
| download | rneovim-0a471e009a1410a822384321dbd48a36b0117c5c.tar.gz rneovim-0a471e009a1410a822384321dbd48a36b0117c5c.tar.bz2 rneovim-0a471e009a1410a822384321dbd48a36b0117c5c.zip | |
vim-patch:8.0.0646: the hlsearch test fails on fast systems
Problem: The hlsearch test fails on fast systems.
Solution: Make the search pattern slower. Fix that the old regexp engine
doesn't timeout properly.
https://github.com/vim/vim/commit/0946326580e6f034fe2c88d041407ea0fde980ab
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_hlsearch.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_hlsearch.vim b/src/nvim/testdir/test_hlsearch.vim index 18c4cb37b4..97f6ae7b51 100644 --- a/src/nvim/testdir/test_hlsearch.vim +++ b/src/nvim/testdir/test_hlsearch.vim @@ -38,7 +38,8 @@ func Test_hlsearch_hangs() endif " This pattern takes a long time to match, it should timeout. - help + new + call setline(1, ['aaa', repeat('abc ', 100000), 'ccc']) let start = reltime() set hlsearch nolazyredraw redrawtime=101 let @/ = '\%#=1a*.*X\@<=b*' @@ -47,7 +48,7 @@ func Test_hlsearch_hangs() call assert_true(elapsed > 0.1) call assert_true(elapsed < 1.0) set nohlsearch redrawtime& - quit + bwipe! endfunc func Test_hlsearch_eol_highlight() |