1
0
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:
Bram Moolenaar
2016-06-09 22:53:01 +02:00
parent 1cee693b31
commit 1610d05241
5 changed files with 20 additions and 9 deletions

View File

@@ -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);
}