changeset 27545:d00f5bb4941f v8.2.4299

patch 8.2.4299: SafeState autocommand interferes with debugging Commit: https://github.com/vim/vim/commit/46f3080e5cd4cd1bae23e72a429a8195eb1ded7a Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 5 12:10:52 2022 +0000 patch 8.2.4299: SafeState autocommand interferes with debugging Problem: SafeState autocommand interferes with debugging. Solution: Do not trigger SafeState while debugging. (closes https://github.com/vim/vim/issues/9697)
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Feb 2022 13:15:03 +0100
parents ef94b26ef0cb
children 9e4bb6ee63f5
files src/main.c src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.c
+++ b/src/main.c
@@ -1047,7 +1047,8 @@ is_safe_now(void)
     return stuff_empty()
 	&& typebuf.tb_len == 0
 	&& scriptin[curscript] == NULL
-	&& !global_busy;
+	&& !global_busy
+	&& !debug_mode;
 }
 
 /*
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4299,
+/**/
     4298,
 /**/
     4297,