diff src/testdir/test_search_stat.vim @ 16560:8d0ea09e2d81 v8.1.1283

patch 8.1.1283: delaying half a second after the top-bot message commit https://github.com/vim/vim/commit/c7a10b35de70471519d104a74d402c63557f0512 Author: Bram Moolenaar <Bram@vim.org> Date: Mon May 6 21:37:18 2019 +0200 patch 8.1.1283: delaying half a second after the top-bot message Problem: Delaying half a second after the top-bot message. Solution: Instead of the delay add "W" to the search count.
author Bram Moolenaar <Bram@vim.org>
date Mon, 06 May 2019 21:45:06 +0200
parents 5e25171e0e75
children 2c2f5f0173c1
line wrap: on
line diff
--- 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)