aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-19 11:12:33 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-04-19 11:29:35 +0800
commit519acb3ec1cb1f1ee7fe73e43dd4db02e49f336f (patch)
treebb376bd66ed50571b91dc8605b60d8943596dd0a
parentb9bf1b1294f9acd7c410ada02ff5c1d0dbb95f12 (diff)
downloadrneovim-519acb3ec1cb1f1ee7fe73e43dd4db02e49f336f.tar.gz
rneovim-519acb3ec1cb1f1ee7fe73e43dd4db02e49f336f.tar.bz2
rneovim-519acb3ec1cb1f1ee7fe73e43dd4db02e49f336f.zip
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. https://github.com/vim/vim/commit/e5eae82bb7199bd71c6216269e78c69e9a793c8f Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--test/old/testdir/runtest.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/old/testdir/runtest.vim b/test/old/testdir/runtest.vim
index 69a41dcbfc..5ee9c9fa71 100644
--- a/test/old/testdir/runtest.vim
+++ b/test/old/testdir/runtest.vim
@@ -320,6 +320,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.