changeset 31402:1797406ac0bf v9.0.1034

patch 9.0.1034: reporting swap file when windows are split Commit: https://github.com/vim/vim/commit/e5eae82bb7199bd71c6216269e78c69e9a793c8f Author: Bram Moolenaar <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Thu, 08 Dec 2022 17:45:03 +0100
parents 34211852ba61
children bb11538fdad2
files src/testdir/runtest.vim src/version.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- 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,