refactor: replace TRUE/FALSE with true/false #15647

This commit is contained in:
dundargoc
2021-09-13 13:57:36 +02:00
committed by GitHub
parent b9d57fa107
commit d5b66e8860
12 changed files with 150 additions and 165 deletions

View File

@@ -3341,11 +3341,11 @@ static int do_swapexists(buf_T *buf, char_u *fname)
set_vim_var_string(VV_SWAPNAME, (char *) fname, -1);
set_vim_var_string(VV_SWAPCHOICE, NULL, -1);
/* Trigger SwapExists autocommands with <afile> set to the file being
* edited. Disallow changing directory here. */
++allbuf_lock;
apply_autocmds(EVENT_SWAPEXISTS, buf->b_fname, NULL, FALSE, NULL);
--allbuf_lock;
// Trigger SwapExists autocommands with <afile> set to the file being
// edited. Disallow changing directory here.
allbuf_lock++;
apply_autocmds(EVENT_SWAPEXISTS, buf->b_fname, NULL, false, NULL);
allbuf_lock--;
set_vim_var_string(VV_SWAPNAME, NULL, -1);