aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-10-20 15:10:33 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-10-23 20:06:21 +0200
commit5f03a1eaabfc8de2b3a9c666fcd604763f41e152 (patch)
tree2a4e38bf7ac44749bd876d5e4d822f8ac604c2ae /src/nvim/ex_docmd.c
parente606604322815abd3dc91a5595a0aa976a9aded7 (diff)
downloadrneovim-5f03a1eaabfc8de2b3a9c666fcd604763f41e152.tar.gz
rneovim-5f03a1eaabfc8de2b3a9c666fcd604763f41e152.tar.bz2
rneovim-5f03a1eaabfc8de2b3a9c666fcd604763f41e152.zip
build(lint): remove unnecessary clint.py rules
Uncrustify is the source of truth where possible. Remove any redundant checks from clint.py.
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c31
1 files changed, 20 insertions, 11 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 98da044bb4..772e0d0faf 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -159,19 +159,28 @@ static char dollar_command[2] = { '$', 0 };
static void save_dbg_stuff(struct dbg_stuff *dsp)
{
- dsp->trylevel = trylevel; trylevel = 0;
- dsp->force_abort = force_abort; force_abort = false;
- dsp->caught_stack = caught_stack; caught_stack = NULL;
- dsp->vv_exception = v_exception(NULL);
- dsp->vv_throwpoint = v_throwpoint(NULL);
+ dsp->trylevel = trylevel;
+ trylevel = 0;
+ dsp->force_abort = force_abort;
+ force_abort = false;
+ dsp->caught_stack = caught_stack;
+ caught_stack = NULL;
+ dsp->vv_exception = v_exception(NULL);
+ dsp->vv_throwpoint = v_throwpoint(NULL);
// Necessary for debugging an inactive ":catch", ":finally", ":endtry".
- dsp->did_emsg = did_emsg; did_emsg = false;
- dsp->got_int = got_int; got_int = false;
- dsp->did_throw = did_throw; did_throw = false;
- dsp->need_rethrow = need_rethrow; need_rethrow = false;
- dsp->check_cstack = check_cstack; check_cstack = false;
- dsp->current_exception = current_exception; current_exception = NULL;
+ dsp->did_emsg = did_emsg;
+ did_emsg = false;
+ dsp->got_int = got_int;
+ got_int = false;
+ dsp->did_throw = did_throw;
+ did_throw = false;
+ dsp->need_rethrow = need_rethrow;
+ need_rethrow = false;
+ dsp->check_cstack = check_cstack;
+ check_cstack = false;
+ dsp->current_exception = current_exception;
+ current_exception = NULL;
}
static void restore_dbg_stuff(struct dbg_stuff *dsp)