aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/old/testdir/runtest.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/old/testdir/runtest.vim b/test/old/testdir/runtest.vim
index 69a41dcbfc..5ee9c9fa71 100644
--- a/test/old/testdir/runtest.vim
+++ b/test/old/testdir/runtest.vim
@@ -320,6 +320,11 @@ func RunTheTest(test)
call add(s:messages, message)
let s:done += 1
+ " close any split windows
+ while winnr('$') > 1
+ bwipe!
+ endwhile
+
" May be editing some buffer, wipe it out. Then we may end up in another
" buffer, continue until we end up in an empty no-name buffer without a swap
" file.