summaryrefslogtreecommitdiff
path: root/src/testdir/test_search_stat.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-06 21:37:18 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-06 21:37:18 +0200
commitc7a10b35de70471519d104a74d402c63557f0512 (patch)
treec6b836d5a41f0ac44ccb786d83329b12ffe175ee /src/testdir/test_search_stat.vim
parent91882cf712119794b5d658bcb10d15dd2fad73ba (diff)
downloadvim-git-c7a10b35de70471519d104a74d402c63557f0512.tar.gz
patch 8.1.1283: delaying half a second after the top-bot messagev8.1.1283
Problem: Delaying half a second after the top-bot message. Solution: Instead of the delay add "W" to the search count.
Diffstat (limited to 'src/testdir/test_search_stat.vim')
-rw-r--r--src/testdir/test_search_stat.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/testdir/test_search_stat.vim b/src/testdir/test_search_stat.vim
index 37e2fdaef..57dad81b8 100644
--- a/src/testdir/test_search_stat.vim
+++ b/src/testdir/test_search_stat.vim
@@ -3,6 +3,8 @@
" This test is fragile, it might not work interactively, but it works when run
" as test!
+source shared.vim
+
func! Test_search_stat()
new
set shortmess-=S
@@ -79,7 +81,7 @@ func! Test_search_stat()
set norl
endif
- " 9) normal, back at top
+ " 9) normal, back at bottom
call cursor(1,1)
let @/ = 'foobar'
let pat = '?foobar\s\+'
@@ -87,6 +89,7 @@ func! Test_search_stat()
let stat = '\[20/20\]'
call assert_match(pat .. stat, g:a)
call assert_match('search hit TOP, continuing at BOTTOM', g:a)
+ call assert_match('\[20/20\] W', Screenline(&lines))
" 10) normal, no match
call cursor(1,1)