From 7a91177bc94fa275f16bd2b9159cbbc7d5a0c2d6 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 11 Feb 2018 17:39:15 +0100 Subject: [PATCH] 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 --- src/nvim/testdir/runtest.vim | 10 +++++++--- 1 file 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!