vim-patch:8.2.4299: SafeState autocommand interferes with debugging

Problem:    SafeState autocommand interferes with debugging.
Solution:   Do not trigger SafeState while debugging. (closes vim/vim#9697)

46f3080e5c

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2023-08-21 13:22:36 +08:00
parent 71acb71043
commit 4b0a13b455

View File

@@ -279,7 +279,8 @@ static bool is_safe_now(void)
return stuff_empty()
&& typebuf.tb_len == 0
&& !using_script()
&& !global_busy;
&& !global_busy
&& !debug_mode;
}
/// Trigger SafeState if currently in s safe state, that is "safe" is TRUE and