diff options
Diffstat (limited to 'src/nvim')
| -rw-r--r-- | src/nvim/testdir/runtest.vim | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/src/nvim/testdir/runtest.vim b/src/nvim/testdir/runtest.vim index 931013877d..20863bbaf3 100644 --- a/src/nvim/testdir/runtest.vim +++ b/src/nvim/testdir/runtest.vim @@ -86,6 +86,12 @@ function RunTheTest(test)    if exists("*TearDown")      call TearDown()    endif + +  " Close any extra windows and make the current one not modified. +  while winnr('$') > 1 +    bwipe! +  endwhile +  set nomodified  endfunc  " Source the test script.  First grab the file name, in case the script | 
