aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memline.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/memline.c')
-rw-r--r--src/nvim/memline.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c
index 230361b997..f1774a20cf 100644
--- a/src/nvim/memline.c
+++ b/src/nvim/memline.c
@@ -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);