forked from aniani/vim
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:
@@ -3176,7 +3176,7 @@ call_callback(
|
|||||||
|
|
||||||
// When a :def function was called that uses :try an error would be turned
|
// When a :def function was called that uses :try an error would be turned
|
||||||
// into an exception. Need to give the error here.
|
// 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;
|
need_rethrow = FALSE;
|
||||||
handle_did_throw();
|
handle_did_throw();
|
||||||
|
@@ -749,6 +749,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
3799,
|
||||||
/**/
|
/**/
|
||||||
3798,
|
3798,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user