1
0
forked from aniani/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.
This commit is contained in:
Bram Moolenaar
2022-12-08 16:30:16 +00:00
parent 83c43ab319
commit e5eae82bb7
2 changed files with 7 additions and 0 deletions

View File

@@ -365,6 +365,11 @@ func RunTheTest(test)
call add(s:messages, message) call add(s:messages, message)
let s:done += 1 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 " 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 " buffer, continue until we end up in an empty no-name buffer without a swap
" file. " file.

View File

@@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1034,
/**/ /**/
1033, 1033,
/**/ /**/