From 464473aad235a898cf4d69462098faeeec831ba4 Mon Sep 17 00:00:00 2001 From: Felipe Scherer Date: Wed, 3 Jul 2024 15:43:51 -0300 Subject: [PATCH] fix(autocmds): format code --- src/nvim/autocmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nvim/autocmd.c b/src/nvim/autocmd.c index ecaed229b3..fb009b60db 100644 --- a/src/nvim/autocmd.c +++ b/src/nvim/autocmd.c @@ -2107,7 +2107,7 @@ char *getnextac(int c, void *cookie, int indent, bool do_concat) AutoCmd ac_copy = *ac; if (oneshot) { - ac->pat = NULL; // Assign NULL to prevent calling autocommand with once=true again + ac->pat = NULL; // Assign NULL to prevent calling autocommand with once=true again } // Can potentially reallocate kvec_t data and invalidate the ac pointer @@ -2116,7 +2116,7 @@ char *getnextac(int c, void *cookie, int indent, bool do_concat) oneshot = true; } - kv_A(*acs, apc->auidx).pat = ac_copy.pat; // Restore aucmd reference + kv_A(*acs, apc->auidx).pat = ac_copy.pat; // Restore aucmd reference // TODO(tjdevries): //