1
0
forked from aniani/vim

patch 8.2.1820: Vim9: crash when error happens in timer callback

Problem:    Vim9: crash when error happens in timer callback.
Solution:   Check that current_exception is not NULL. (closes #7100)
This commit is contained in:
Bram Moolenaar
2020-10-10 15:05:23 +02:00
parent 85d5e2b723
commit 820d55a50b
2 changed files with 6 additions and 0 deletions

View File

@@ -1234,6 +1234,10 @@ do_cmdline(
if (trylevel == 0)
{
// Just in case did_throw got set but current_exception wasn't.
if (current_exception == NULL)
did_throw = FALSE;
/*
* When an exception is being thrown out of the outermost try
* conditional, discard the uncaught exception, disable the conversion

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1820,
/**/
1819,
/**/