From 46f3080e5cd4cd1bae23e72a429a8195eb1ded7a Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 5 Feb 2022 12:10:52 +0000 Subject: [PATCH] patch 8.2.4299: SafeState autocommand interferes with debugging Problem: SafeState autocommand interferes with debugging. Solution: Do not trigger SafeState while debugging. (closes #9697) --- src/main.c | 3 ++- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index fa5d8f1d3..389d57000 100644 --- 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; } /* diff --git a/src/version.c b/src/version.c index 7df9eaa7a..92b922184 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4299, /**/ 4298, /**/ -- 2.50.1