# HG changeset patch # User Bram Moolenaar # Date 1670517903 -3600 # Node ID 1797406ac0bf2f936c6384e01eacdb10dcaddd0f # Parent 34211852ba61ef9e87b701005515406afb522eba patch 9.0.1034: reporting swap file when windows are split Commit: https://github.com/vim/vim/commit/e5eae82bb7199bd71c6216269e78c69e9a793c8f Author: Bram Moolenaar Date: Thu Dec 8 16:30:16 2022 +0000 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. diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim --- 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. diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1034, +/**/ 1033, /**/ 1032,