summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-07-29 08:43:53 +0000
committerBram Moolenaar <Bram@vim.org>2004-07-29 08:43:53 +0000
commit269ec658f0fad22b2bf9f71b06a4e6e10277f0e5 (patch)
tree450e57b10e8afd1c2a0c49e698a73d508781f67c /src/ex_cmds.c
parent5eb86f91992f5291b8b472d3e1be1888508777e6 (diff)
downloadvim-git-269ec658f0fad22b2bf9f71b06a4e6e10277f0e5.tar.gz
updated for version 7.0013
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 3a49b9a64..ba3670042 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -2203,6 +2203,7 @@ do_write(eap)
buf_T *was_curbuf = curbuf;
apply_autocmds(EVENT_BUFFILEPRE, NULL, NULL, FALSE, curbuf);
+ apply_autocmds(EVENT_BUFFILEPRE, NULL, NULL, FALSE, alt_buf);
# ifdef FEAT_EVAL
if (curbuf != was_curbuf || aborting())
# else
@@ -2231,6 +2232,7 @@ do_write(eap)
buf_name_changed(curbuf);
#ifdef FEAT_AUTOCMD
apply_autocmds(EVENT_BUFFILEPOST, NULL, NULL, FALSE, curbuf);
+ apply_autocmds(EVENT_BUFFILEPOST, NULL, NULL, FALSE, alt_buf);
if (!alt_buf->b_p_bl)
{
alt_buf->b_p_bl = TRUE;