From 519acb3ec1cb1f1ee7fe73e43dd4db02e49f336f Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 19 Apr 2023 11:12:33 +0800 Subject: vim-patch:9.0.1034: reporting swap file when windows are split Problem: Reporting swap file when windows are split. Solution: Close extra windows after running a test. https://github.com/vim/vim/commit/e5eae82bb7199bd71c6216269e78c69e9a793c8f Co-authored-by: Bram Moolenaar --- test/old/testdir/runtest.vim | 5 +++++ 1 file changed, 5 insertions(+) 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. -- cgit