# HG changeset patch # User Bram Moolenaar # Date 1644063303 -3600 # Node ID d00f5bb4941f9c417c14c7cb2216c250c8bca746 # Parent ef94b26ef0cb242e296d5886b15bd9d26fb546cf patch 8.2.4299: SafeState autocommand interferes with debugging Commit: https://github.com/vim/vim/commit/46f3080e5cd4cd1bae23e72a429a8195eb1ded7a Author: Bram Moolenaar 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) diff --git a/src/main.c b/src/main.c --- 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 --- 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,