]> granicus.if.org Git - vim/commitdiff
patch 8.2.4299: SafeState autocommand interferes with debugging v8.2.4299
authorBram Moolenaar <Bram@vim.org>
Sat, 5 Feb 2022 12:10:52 +0000 (12:10 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 5 Feb 2022 12:10:52 +0000 (12:10 +0000)
Problem:    SafeState autocommand interferes with debugging.
Solution:   Do not trigger SafeState while debugging. (closes #9697)

src/main.c
src/version.c

index fa5d8f1d3d50fe056cdc7dd5e3ace8843c3f201f..389d570006b53130c4d22d28b812cd069ab125e2 100644 (file)
@@ -1047,7 +1047,8 @@ is_safe_now(void)
     return stuff_empty()
        && typebuf.tb_len == 0
        && scriptin[curscript] == NULL
-       && !global_busy;
+       && !global_busy
+       && !debug_mode;
 }
 
 /*
index 7df9eaa7af873211c1f2860d6a1516fecc0e7f5a..92b9221848e9f798ec8daefda189d68dfd0c6832 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4299,
 /**/
     4298,
 /**/