vim-patch:8.2.5102: interrupt not caught in test

Problem:    Interrupt not caught in test.
Solution:   Consider an exception thrown in the current try/catch when got_int
            is set.  Also catch early exit when not using try/catch.

8bea171f15

Cherry-pick test changes from patch 8.2.0557.

bfe13ccc58

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2022-11-30 09:48:10 +08:00
parent f706d24045
commit a7dc48f19d
7 changed files with 42 additions and 25 deletions

View File

@@ -606,6 +606,7 @@ theend:
suppress_errthrow = false;
in_assert_fails = false;
did_emsg = false;
got_int = false;
msg_col = 0;
no_wait_return--;
need_wait_return = false;