aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/state.c3
1 files changed, 2 insertions, 1 deletions
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