summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-08-16 17:35:00 +0000
committerBram Moolenaar <Bram@vim.org>2006-08-16 17:35:00 +0000
commitf30e74c11333c37d777b929ea77f5716cc977d27 (patch)
treef5f92c2a1804ccd02aa88290d59cd29de0fe788e /src/buffer.c
parenta7ecc563e8af7ed663ed5b174acd89257ea50fba (diff)
updated for version 7.0-060v7.0.060
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 6a7fa2f544..6ffa1cb143 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5420,11 +5420,7 @@ buf_contents_changed(buf)
buf_T *newbuf;
int differ = TRUE;
linenr_T lnum;
-#ifdef FEAT_AUTOCMD
aco_save_T aco;
-#else
- buf_T *old_curbuf = curbuf;
-#endif
exarg_T ea;
/* Allocate a buffer without putting it in the buffer list. */
@@ -5439,13 +5435,8 @@ buf_contents_changed(buf)
return TRUE;
}
-#ifdef FEAT_AUTOCMD
/* set curwin/curbuf to buf and save a few things */
aucmd_prepbuf(&aco, newbuf);
-#else
- curbuf = newbuf;
- curwin->w_buffer = newbuf;
-#endif
if (ml_open(curbuf) == OK
&& readfile(buf->b_ffname, buf->b_fname,
@@ -5466,13 +5457,8 @@ buf_contents_changed(buf)
}
vim_free(ea.cmd);
-#ifdef FEAT_AUTOCMD
/* restore curwin/curbuf and a few other things */
aucmd_restbuf(&aco);
-#else
- curbuf = old_curbuf;
- curwin->w_buffer = old_curbuf;
-#endif
if (curbuf != newbuf) /* safety check */
wipe_buffer(newbuf, FALSE);