0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.2370: Vim9: command fails in catch block

Problem:    Vim9: command fails in catch block.
Solution:   Reset force_abort and need_rethrow. (closes #7692)
This commit is contained in:
Bram Moolenaar
2021-01-17 19:20:32 +01:00
parent 3af15ab788
commit 1430ceeb2d
3 changed files with 40 additions and 0 deletions

View File

@@ -2572,6 +2572,7 @@ call_def_function(
trycmd->tcd_caught = TRUE;
}
did_emsg = got_int = did_throw = FALSE;
force_abort = need_rethrow = FALSE;
catch_exception(current_exception);
}
break;