forked from aniani/vim
patch 7.4.1913
Problem: When ":doautocmd" is used modelines are used even when no
autocommands were executed. (Daniel Hahler)
Solution: Skip processing modelines. (closes #854)
This commit is contained in:
@@ -3096,7 +3096,7 @@ do_write(exarg_T *eap)
|
||||
{
|
||||
if (au_has_group((char_u *)"filetypedetect"))
|
||||
(void)do_doautocmd((char_u *)"filetypedetect BufRead",
|
||||
TRUE);
|
||||
TRUE, NULL);
|
||||
do_modelines(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user