mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +00:00
feat(lua): add api and lua autocmds
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user