]> granicus.if.org Git - vim/commitdiff
patch 9.0.1034: reporting swap file when windows are split v9.0.1034
authorBram Moolenaar <Bram@vim.org>
Thu, 8 Dec 2022 16:30:16 +0000 (16:30 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 8 Dec 2022 16:30:16 +0000 (16:30 +0000)
Problem:    Reporting swap file when windows are split.
Solution:   Close extra windows after running a test.

src/testdir/runtest.vim
src/version.c

index 1d70a90f05dd314b89d9107d11d57f13791bf6cd..5fe391b8f305317de3b5990c2624017b00c64836 100644 (file)
@@ -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.
index fa65352086b2c18e9be376a9d3841cbd0622f717..f8977bc205f489a794634c2208985eaed9afb35c 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1034,
 /**/
     1033,
 /**/