mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
feat(lua): add api and lua autocmds
This commit is contained in:
@@ -1943,7 +1943,7 @@ int do_write(exarg_T *eap)
|
||||
|
||||
// If 'filetype' was empty try detecting it now.
|
||||
if (*curbuf->b_p_ft == NUL) {
|
||||
if (au_has_group((char_u *)"filetypedetect")) {
|
||||
if (augroup_exists("filetypedetect")) {
|
||||
(void)do_doautocmd((char_u *)"filetypedetect BufRead", true, NULL);
|
||||
}
|
||||
do_modelines(0);
|
||||
|
Reference in New Issue
Block a user