forked from aniani/vim
patch 8.2.4098: typing "interrupt" at debug prompt may keep exception around
Problem: Typing "interrupt" at debug prompt may keep exception around, causing function calls to fail. Solution: Discard any exception at the toplevel. (closes #9532)
This commit is contained in:
@@ -1246,6 +1246,13 @@ main_loop(
|
|||||||
else
|
else
|
||||||
previous_got_int = FALSE;
|
previous_got_int = FALSE;
|
||||||
|
|
||||||
|
#ifdef FEAT_EVAL
|
||||||
|
// At the toplevel there is no exception handling. Discard any that
|
||||||
|
// may be hanging around (e.g. from "interrupt" at the debug prompt).
|
||||||
|
if (did_throw && !ex_normal_busy)
|
||||||
|
discard_current_exception();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!exmode_active)
|
if (!exmode_active)
|
||||||
msg_scroll = FALSE;
|
msg_scroll = FALSE;
|
||||||
quit_more = FALSE;
|
quit_more = FALSE;
|
||||||
|
@@ -750,6 +750,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 */
|
||||||
|
/**/
|
||||||
|
4098,
|
||||||
/**/
|
/**/
|
||||||
4097,
|
4097,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user