# HG changeset patch # User Bram Moolenaar # Date 1639422903 -3600 # Node ID 682ff45f289f51ae0d0a84f01815757437c39bb3 # Parent 45d9468fd3f896bdc7b15d640d26793b0f895648 patch 8.2.3799: edit test hangs or fails Commit: https://github.com/vim/vim/commit/80d60910ff493f7b8ea52156e4c7df7e70a348c6 Author: Bram Moolenaar Date: Mon Dec 13 19:14:52 2021 +0000 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. diff --git a/src/userfunc.c b/src/userfunc.c --- a/src/userfunc.c +++ b/src/userfunc.c @@ -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(); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3799, +/**/ 3798, /**/ 3797,