aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-02-11 17:39:15 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-02-11 19:03:29 +0100
commit7a91177bc94fa275f16bd2b9159cbbc7d5a0c2d6 (patch)
tree4f026c363b06b0e31c13730dbc827e3039f82ed0 /src
parent840a2bb67d27658e136151b468e2f756b0a969f3 (diff)
downloadrneovim-7a91177bc94fa275f16bd2b9159cbbc7d5a0c2d6.tar.gz
rneovim-7a91177bc94fa275f16bd2b9159cbbc7d5a0c2d6.tar.bz2
rneovim-7a91177bc94fa275f16bd2b9159cbbc7d5a0c2d6.zip
vim-patch:8.0.0293: some tests have a one or three second wait
Problem: Some tests have a one or three second wait. Solution: Reset the 'showmode' option. Use a test time of one to disable sleep after an error or warning message. https://github.com/vim/vim/commit/e5f2a075e35aa903e8d5a63bef1a438344bba5fb
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/runtest.vim10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/nvim/testdir/runtest.vim b/src/nvim/testdir/runtest.vim
index 326b1f757c..b9494f26a2 100644
--- a/src/nvim/testdir/runtest.vim
+++ b/src/nvim/testdir/runtest.vim
@@ -54,9 +54,6 @@ else
set encoding=latin1
endif
-" Avoid stopping at the "hit enter" prompt
-set nomore
-
" Output all messages in English.
lang mess C
@@ -84,6 +81,13 @@ endfunc
func RunTheTest(test)
echo 'Executing ' . a:test
+ " Avoid stopping at the "hit enter" prompt
+ set nomore
+
+ " Avoid a three second wait when a message is about to be overwritten by the
+ " mode message.
+ set noshowmode
+
" Some tests wipe out buffers. To be consistent, always wipe out all
" buffers.
%bwipe!