aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-12-31 14:23:24 +0100
committerGitHub <noreply@github.com>2022-12-31 14:23:24 +0100
commitcce736218f465511194465410e1ba23b5530e46f (patch)
tree02f488ea361a4fba8aec92e44193d8627836cd55 /src/nvim/ex_docmd.c
parent99cf111289bfcd14981255e805da43bac5139141 (diff)
parent9fdcbbb4063daa125e420e0ffe9dae6801c264bc (diff)
downloadrneovim-cce736218f465511194465410e1ba23b5530e46f.tar.gz
rneovim-cce736218f465511194465410e1ba23b5530e46f.tar.bz2
rneovim-cce736218f465511194465410e1ba23b5530e46f.zip
Merge pull request #18375 from bfredl/tui_rework
feat(ui): refactor TUI from thread to separate process
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 1d4c7b4aab..5b0adba650 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -1931,9 +1931,11 @@ static char *do_one_cmd(char **cmdlinep, int flags, cstack_T *cstack, LineGetter
profile_cmd(&ea, cstack, fgetline, cookie);
- // May go to debug mode. If this happens and the ">quit" debug command is
- // used, throw an interrupt exception and skip the next command.
- dbg_check_breakpoint(&ea);
+ if (!exiting) {
+ // May go to debug mode. If this happens and the ">quit" debug command is
+ // used, throw an interrupt exception and skip the next command.
+ dbg_check_breakpoint(&ea);
+ }
if (!ea.skip && got_int) {
ea.skip = true;
(void)do_intthrow(cstack);