diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-12-08 16:30:16 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-12-08 16:30:16 +0000 |
commit | e5eae82bb7199bd71c6216269e78c69e9a793c8f (patch) | |
tree | 25441436f9c6d661953b6e1c13a5319eb7eca022 /src/testdir/runtest.vim | |
parent | 83c43ab319f4c4a9d03c65648b4f0df4298a7f93 (diff) |
patch 9.0.1034: reporting swap file when windows are splitv9.0.1034
Problem: Reporting swap file when windows are split.
Solution: Close extra windows after running a test.
Diffstat (limited to 'src/testdir/runtest.vim')
-rw-r--r-- | src/testdir/runtest.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim index 1d70a90f05..5fe391b8f3 100644 --- a/src/testdir/runtest.vim +++ b/src/testdir/runtest.vim @@ -365,6 +365,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. |