summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-01-16 20:33:19 +0000
committerBram Moolenaar <Bram@vim.org>2007-01-16 20:33:19 +0000
commit8dd1aa58ad96299425a95a48e2442dd1a039cfbd (patch)
treec1016d8cd9741b7db6fffc17fe994c0e7bc4e9a7 /src/ex_cmds2.c
parentfb7c90c0face9790bdfe04cdfec95681fbc7b3e0 (diff)
updated for version 7.0-187v7.0.187
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 50258725c3..6396ee115e 100644
--- 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