From 4b0a13b455e6218514bfc67da0bb375529b4d4d7 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 21 Aug 2023 13:22:36 +0800 Subject: 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) https://github.com/vim/vim/commit/46f3080e5cd4cd1bae23e72a429a8195eb1ded7a Co-authored-by: Bram Moolenaar --- src/nvim/state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/nvim') diff --git a/src/nvim/state.c b/src/nvim/state.c index ccf2a81adb..9a65e25a90 100644 --- a/src/nvim/state.c +++ b/src/nvim/state.c @@ -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 -- cgit