diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-02-28 00:07:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-28 00:07:31 +0100 |
commit | fad33b095fcc2607ea9f058b5fa76cda9483a24e (patch) | |
tree | 8d453a80320e49c2748f03240db8a4338384c9a1 /src/nvim/ex_cmds.c | |
parent | 1b5767aa3480c0cdc43f7a4b78f36a14e85a182f (diff) | |
parent | 991e472881bf29805982b402c1a010cde051ded3 (diff) | |
download | rneovim-fad33b095fcc2607ea9f058b5fa76cda9483a24e.tar.gz rneovim-fad33b095fcc2607ea9f058b5fa76cda9483a24e.tar.bz2 rneovim-fad33b095fcc2607ea9f058b5fa76cda9483a24e.zip |
Merge pull request #14661 from tjdevries/tjdevries/lua_autocmd_v2
lua: autocmds take 2: electric autoroo
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 49bf9972b1..c7910e148d 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -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); |