0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

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.
This commit is contained in:
Bram Moolenaar
2022-06-15 20:49:35 +01:00
parent cf65d88ff8
commit 8bea171f15
5 changed files with 31 additions and 12 deletions

View File

@@ -1781,8 +1781,10 @@ ex_retab(exarg_T *eap)
if (vcol >= MAXCOL)
{
emsg(_(e_resulting_text_too_long));
// set got_int to break out of any loop
got_int = TRUE;
// when not inside a try/catch set got_int to break out of any
// loop
if (trylevel == 0)
got_int = TRUE;
break;
}
if (has_mbyte)