diff options
author | TJ DeVries <devries.timothyj@gmail.com> | 2021-05-28 15:45:34 -0400 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-02-27 22:04:55 +0100 |
commit | 991e472881bf29805982b402c1a010cde051ded3 (patch) | |
tree | 8d453a80320e49c2748f03240db8a4338384c9a1 /src/nvim/fileio.c | |
parent | 1b5767aa3480c0cdc43f7a4b78f36a14e85a182f (diff) | |
download | rneovim-991e472881bf29805982b402c1a010cde051ded3.tar.gz rneovim-991e472881bf29805982b402c1a010cde051ded3.tar.bz2 rneovim-991e472881bf29805982b402c1a010cde051ded3.zip |
feat(lua): add api and lua autocmds
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index f5824d83be..965aa8749d 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -3796,7 +3796,7 @@ static int set_rw_fname(char_u *fname, char_u *sfname) // Do filetype detection now if 'filetype' is empty. if (*curbuf->b_p_ft == NUL) { - if (au_has_group((char_u *)"filetypedetect")) { + if (augroup_exists("filetypedetect")) { (void)do_doautocmd((char_u *)"filetypedetect BufRead", false, NULL); } do_modelines(0); |