diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-07-26 20:41:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-26 20:41:54 +0200 |
commit | c818d8df349fff514eef8a529afe63e8102ca281 (patch) | |
tree | 0acd1856fccebc93e6c98725f211617f58e11c57 /src/nvim/ex_eval.c | |
parent | 3e00d4f01cebedb758050e2e3faf065036fcfdc2 (diff) | |
parent | dfd9d861dc218dfe2b5e63eb4d6b77e163b33d59 (diff) | |
download | rneovim-c818d8df349fff514eef8a529afe63e8102ca281.tar.gz rneovim-c818d8df349fff514eef8a529afe63e8102ca281.tar.bz2 rneovim-c818d8df349fff514eef8a529afe63e8102ca281.zip |
Merge pull request #15197 from dundargoc/refactor/a-song-of-true-and-false/global-variables
refactor: replace TRUE/FALSE with true/false
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; } |