diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-21 13:22:36 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-08-21 14:16:16 +0800 |
commit | 4b0a13b455e6218514bfc67da0bb375529b4d4d7 (patch) | |
tree | 40ed39350844e091becf648b9693c3272eb50762 | |
parent | 71acb7104344e3631e995b973416776aeadda0e1 (diff) | |
download | rneovim-4b0a13b455e6218514bfc67da0bb375529b4d4d7.tar.gz rneovim-4b0a13b455e6218514bfc67da0bb375529b4d4d7.tar.bz2 rneovim-4b0a13b455e6218514bfc67da0bb375529b4d4d7.zip |
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 <Bram@vim.org>
-rw-r--r-- | src/nvim/state.c | 3 |
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 |