]> granicus.if.org Git - vim/commitdiff
patch 8.2.4035: timer triggered at the debug prompt may cause trouble v8.2.4035
authorBram Moolenaar <Bram@vim.org>
Fri, 7 Jan 2022 20:40:08 +0000 (20:40 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 7 Jan 2022 20:40:08 +0000 (20:40 +0000)
Problem:    Timer triggered at the debug prompt may cause trouble.
Solution:   Do not trigger any timer at the debug prompt. (closes #9481)

src/time.c
src/version.c

index 001f2d812161c40f59e922fb47aa6e219081f616..75e7b2546f141b07610304008bb914802db81a50 100644 (file)
@@ -501,8 +501,9 @@ check_due_timer(void)
     int                need_update_screen = FALSE;
     long       current_id = last_timer_id;
 
-    // Don't run any timers while exiting or dealing with an error.
-    if (exiting || aborting())
+    // Don't run any timers while exiting, dealing with an error or at the
+    // debug prompt.
+    if (exiting || aborting() || debug_mode)
        return next_due;
 
     profile_start(&now);
index e2b5023e35cbd4a9c7102a08cad9fde2c3b2d3c6..44d849ef5b94e3040dc0463dc7b05cbeb073c778 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4035,
 /**/
     4034,
 /**/