1
0
forked from aniani/vim

updated for version 7.0-187

This commit is contained in:
Bram Moolenaar
2007-01-16 20:33:19 +00:00
parent fb7c90c0fa
commit 8dd1aa58ad
5 changed files with 33 additions and 9 deletions

View File

@@ -2811,6 +2811,17 @@ do_source(fname, check_other, is_vimrc)
}
#ifdef FEAT_AUTOCMD
/* Apply SourceCmd autocommands, they should get the file and source it. */
if (has_autocmd(EVENT_SOURCECMD, fname_exp, NULL)
&& apply_autocmds(EVENT_SOURCECMD, fname_exp, fname_exp,
FALSE, curbuf))
# ifdef FEAT_EVAL
return aborting() ? FAIL : OK;
# else
return OK;
# endif
/* Apply SourcePre autocommands, they may get the file. */
apply_autocmds(EVENT_SOURCEPRE, fname_exp, fname_exp, FALSE, curbuf);
#endif