Mercurial > vim
diff src/ex_cmds2.c @ 1061:b4d11ddb7303 v7.0.187
updated for version 7.0-187
author | vimboss |
---|---|
date | Tue, 16 Jan 2007 20:33:19 +0000 |
parents | b2dcb8457067 |
children | f628d19361d9 |
line wrap: on
line diff
--- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -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