diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-10-01 22:37:40 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-10-01 22:37:40 +0200 |
commit | bdf931c25b4fe78877106ca529baee7899d0f6a4 (patch) | |
tree | 693f3dea4f0ab3c290b72b4dcc9b46cd5877c74e /src/testdir/runtest.vim | |
parent | 74273e66914e46eb5814c13a1b888e45358859b6 (diff) |
patch 8.2.1783: try-catch test failsv8.2.1783
Problem: Try-catch test fails.
Solution: Don't call win_enter(), only call enterering_window().
Diffstat (limited to 'src/testdir/runtest.vim')
-rw-r--r-- | src/testdir/runtest.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim index 3ff8c675f3..08b1f8ec88 100644 --- a/src/testdir/runtest.vim +++ b/src/testdir/runtest.vim @@ -227,7 +227,12 @@ func RunTheTest(test) " Close any extra tab pages and windows and make the current one not modified. while tabpagenr('$') > 1 + let winid = win_getid() quit! + if winid == win_getid() + echoerr 'Could not quit window' + break + endif endwhile while 1 |