vim-patch:7.4.2149

Problem:    If a test leaves a window open a following test may fail.
Solution:   Always close extra windows after running a test.

7cba71d7e3

Apply the runtest.vim changes that were missing from
4431975210
This commit is contained in:
James McCoy 2016-12-28 14:54:30 -05:00
parent 9009c20edb
commit e00b024295
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB

View File

@ -86,6 +86,12 @@ function RunTheTest(test)
if exists("*TearDown") if exists("*TearDown")
call TearDown() call TearDown()
endif endif
" Close any extra windows and make the current one not modified.
while winnr('$') > 1
bwipe!
endwhile
set nomodified
endfunc endfunc
" Source the test script. First grab the file name, in case the script " Source the test script. First grab the file name, in case the script