diff src/main.c @ 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 4f1c67a5f446
children 0410a4c24050
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;
 }
 
 /*