mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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.
e5eae82bb7
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
b9bf1b1294
commit
519acb3ec1
@ -320,6 +320,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.
|
||||||
|
Loading…
Reference in New Issue
Block a user