0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.3799: edit test hangs or fails

Problem:    Edit test hangs or fails.
Solution:   Do not rethrow an exception when inside try/catch.
This commit is contained in:
Bram Moolenaar
2021-12-13 19:14:52 +00:00
parent 3b309f11db
commit 80d60910ff
2 changed files with 3 additions and 1 deletions

View File

@@ -3176,7 +3176,7 @@ call_callback(
// When a :def function was called that uses :try an error would be turned
// into an exception. Need to give the error here.
if (need_rethrow && current_exception != NULL)
if (need_rethrow && current_exception != NULL && trylevel == 0)
{
need_rethrow = FALSE;
handle_did_throw();