diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-05 12:10:52 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-05 12:10:52 +0000 |
commit | 46f3080e5cd4cd1bae23e72a429a8195eb1ded7a (patch) | |
tree | cfe9dcd9a2796ea0c34ffb0372fd03692254dc8d | |
parent | fc88df42f1ae64bcc4d6cbc0fbd3445f8c59afdf (diff) |
patch 8.2.4299: SafeState autocommand interferes with debuggingv8.2.4299
Problem: SafeState autocommand interferes with debugging.
Solution: Do not trigger SafeState while debugging. (closes #9697)
-rw-r--r-- | src/main.c | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index fa5d8f1d3d..389d570006 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 7df9eaa7af..92b9221848 100644 --- 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, |