diff options
author | Dundar Göc <gocdundar@gmail.com> | 2021-07-26 15:20:51 +0200 |
---|---|---|
committer | Dundar Göc <gocdundar@gmail.com> | 2021-07-26 17:12:35 +0200 |
commit | dfd9d861dc218dfe2b5e63eb4d6b77e163b33d59 (patch) | |
tree | 1a2645100e08d01f1da4c9dd88413fd7432b894d /src/nvim/ex_eval.c | |
parent | 7b520cca3a8c6850610d899b180c3306df8899ab (diff) | |
download | rneovim-dfd9d861dc218dfe2b5e63eb4d6b77e163b33d59.tar.gz rneovim-dfd9d861dc218dfe2b5e63eb4d6b77e163b33d59.tar.bz2 rneovim-dfd9d861dc218dfe2b5e63eb4d6b77e163b33d59.zip |
refactor: replace TRUE/FALSE with true/false
Focus is on global variables.
Diffstat (limited to 'src/nvim/ex_eval.c')
-rw-r--r-- | src/nvim/ex_eval.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/nvim/ex_eval.c b/src/nvim/ex_eval.c index 3c765e5d02..1ceccac2bb 100644 --- a/src/nvim/ex_eval.c +++ b/src/nvim/ex_eval.c @@ -832,24 +832,23 @@ void ex_if(exarg_T *eap) */ void ex_endif(exarg_T *eap) { - did_endif = TRUE; + did_endif = true; if (eap->cstack->cs_idx < 0 || (eap->cstack->cs_flags[eap->cstack->cs_idx] - & (CSF_WHILE | CSF_FOR | CSF_TRY))) + & (CSF_WHILE | CSF_FOR | CSF_TRY))) { eap->errmsg = (char_u *)N_("E580: :endif without :if"); - else { - /* - * When debugging or a breakpoint was encountered, display the debug - * prompt (if not already done). This shows the user that an ":endif" - * is executed when the ":if" or a previous ":elseif" was not TRUE. - * Handle a ">quit" debug command as if an interrupt had occurred before - * the ":endif". That is, throw an interrupt exception if appropriate. - * Doing this here prevents an exception for a parsing error being - * discarded by throwing the interrupt exception later on. - */ + } else { + // When debugging or a breakpoint was encountered, display the debug + // prompt (if not already done). This shows the user that an ":endif" + // is executed when the ":if" or a previous ":elseif" was not TRUE. + // Handle a ">quit" debug command as if an interrupt had occurred before + // the ":endif". That is, throw an interrupt exception if appropriate. + // Doing this here prevents an exception for a parsing error being + // discarded by throwing the interrupt exception later on. if (!(eap->cstack->cs_flags[eap->cstack->cs_idx] & CSF_TRUE) - && dbg_check_skipped(eap)) + && dbg_check_skipped(eap)) { (void)do_intthrow(eap->cstack); + } --eap->cstack->cs_idx; } |