mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
9009c20edb
commit
e00b024295
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user