aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2019-05-27 16:41:50 +0900
committererw7 <erw7.github@gmail.com>2019-06-07 09:01:38 +0900
commit526382861495f92dc1e95a86d4a9b545459b7747 (patch)
tree0becb8d2c46e53b3b2252db74f6d1ffc6dc966e5 /src/nvim/testdir
parentec671c7048b4139c3323e7ff3932f93b62751edc (diff)
downloadrneovim-526382861495f92dc1e95a86d4a9b545459b7747.tar.gz
rneovim-526382861495f92dc1e95a86d4a9b545459b7747.tar.bz2
rneovim-526382861495f92dc1e95a86d4a9b545459b7747.zip
vim-patch:8.1.1375: without "TS" in 'shortmess' get a hit-enter prompt often
Problem: Without "TS" in 'shortmess' get a hit-enter prompt often. Solution: Always truncate the search message. Also avoid putting it in the message history. (closes vim/vim#4413) https://github.com/vim/vim/commit/984f031fb02fe301a8dbf8a35b871c9f60b8f61e
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_search_stat.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_search_stat.vim b/src/nvim/testdir/test_search_stat.vim
index 0f52158560..cf36f3214a 100644
--- a/src/nvim/testdir/test_search_stat.vim
+++ b/src/nvim/testdir/test_search_stat.vim
@@ -13,11 +13,14 @@ func! Test_search_stat()
" match at second line
call cursor(1, 1)
+ let messages_before = execute('messages')
let @/ = 'fo*\(bar\?\)\?'
let g:a = execute(':unsilent :norm! n')
let stat = '\[2/50\]'
let pat = escape(@/, '()*?'). '\s\+'
call assert_match(pat .. stat, g:a)
+ " didn't get added to message history
+ call assert_equal(messages_before, execute('messages'))
" Match at last line
call cursor(line('$')-2, 1)