mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
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 from4431975210
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user