summaryrefslogtreecommitdiff
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-07 22:38:47 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-07 22:38:47 +0000
commit1f35bf9cab16d3f3a63c47894c69c9aa699d8145 (patch)
tree6484c3e7edc2bcc857cb509b18c5d52d4977db59 /src/ex_cmds2.c
parenta203182302733c0ea98d66ee1f576f251697dc81 (diff)
downloadvim-git-1f35bf9cab16d3f3a63c47894c69c9aa699d8145.tar.gz
updated for version 7.0217v7.0217
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 7d6a0eb6e..00dcea9eb 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -2612,9 +2612,10 @@ cmd_source(fname, eap)
if (*fname == NUL)
EMSG(_(e_argreq));
- /* ":source!" read vi commands */
else if (eap != NULL && eap->forceit)
- /* Need to execute the commands directly when:
+ /* ":source!": read Normal mdoe commands
+ * Need to execute the commands directly. This is required at least
+ * for:
* - ":g" command busy
* - after ":argdo", ":windo" or ":bufdo"
* - another command follows
@@ -2768,6 +2769,10 @@ do_source(fname, check_other, is_vimrc)
goto theend;
}
+#ifdef FEAT_AUTOCMD
+ apply_autocmds(EVENT_SOURCEPRE, fname_exp, fname_exp, FALSE, curbuf);
+#endif
+
#if defined(WIN32) && defined(FEAT_CSCOPE)
cookie.fp = fopen_noinh_readbin((char *)fname_exp);
#else