aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2019-05-27 16:04:46 +0900
committererw7 <erw7.github@gmail.com>2019-06-05 09:57:25 +0900
commite8ca281d3b9243e66430f7f139c19aabead3de95 (patch)
treed6f4fe0721b34b915bf058b959134fd5615116bb /src/nvim/testdir
parent6cee73195fb5d1d081a1e9ea907cc996d97082de (diff)
downloadrneovim-e8ca281d3b9243e66430f7f139c19aabead3de95.tar.gz
rneovim-e8ca281d3b9243e66430f7f139c19aabead3de95.tar.bz2
rneovim-e8ca281d3b9243e66430f7f139c19aabead3de95.zip
vim-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. https://github.com/vim/vim/commit/c7a10b35de70471519d104a74d402c63557f0512
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_search_stat.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_search_stat.vim b/src/nvim/testdir/test_search_stat.vim
index 37e2fdaef5..57dad81b81 100644
--- a/src/nvim/testdir/test_search_stat.vim
+++ b/src/nvim/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)