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

patch 8.2.4035: timer triggered at the debug prompt may cause trouble

Problem:    Timer triggered at the debug prompt may cause trouble.
Solution:   Do not trigger any timer at the debug prompt. (closes #9481)
This commit is contained in:
Bram Moolenaar
2022-01-07 20:40:08 +00:00
parent 62a099cc6d
commit 48d0ac775c
2 changed files with 5 additions and 2 deletions

View File

@@ -501,8 +501,9 @@ check_due_timer(void)
int need_update_screen = FALSE; int need_update_screen = FALSE;
long current_id = last_timer_id; long current_id = last_timer_id;
// Don't run any timers while exiting or dealing with an error. // Don't run any timers while exiting, dealing with an error or at the
if (exiting || aborting()) // debug prompt.
if (exiting || aborting() || debug_mode)
return next_due; return next_due;
profile_start(&now); profile_start(&now);

View File

@@ -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 */
/**/
4035,
/**/ /**/
4034, 4034,
/**/ /**/