summaryrefslogtreecommitdiff
path: root/src/testdir/runtest.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-02-01 22:31:49 +0100
committerBram Moolenaar <Bram@vim.org>2017-02-01 22:31:49 +0100
commite5f2a075e35aa903e8d5a63bef1a438344bba5fb (patch)
tree99b378a6b557e780f7b11e4fa78a1c8c687df8c6 /src/testdir/runtest.vim
parenta2f28859bfb3fa52bde14c9d2ca3ab7196a9154a (diff)
downloadvim-git-e5f2a075e35aa903e8d5a63bef1a438344bba5fb.tar.gz
patch 8.0.0293: some tests have a one or three second waitv8.0.0293
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.
Diffstat (limited to 'src/testdir/runtest.vim')
-rw-r--r--src/testdir/runtest.vim11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim
index 430b89ac2..43192c450 100644
--- a/src/testdir/runtest.vim
+++ b/src/testdir/runtest.vim
@@ -57,9 +57,6 @@ else
set encoding=latin1
endif
-" Avoid stopping at the "hit enter" prompt
-set nomore
-
" Output all messages in English.
lang mess C
@@ -88,6 +85,14 @@ endfunc
function 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
+
if exists("*SetUp")
try
call SetUp()