diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-08-16 17:35:00 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-08-16 17:35:00 +0000 |
commit | f30e74c11333c37d777b929ea77f5716cc977d27 (patch) | |
tree | f5f92c2a1804ccd02aa88290d59cd29de0fe788e /src/buffer.c | |
parent | a7ecc563e8af7ed663ed5b174acd89257ea50fba (diff) | |
download | vim-git-f30e74c11333c37d777b929ea77f5716cc977d27.tar.gz |
updated for version 7.0-060v7.0.060
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/buffer.c b/src/buffer.c index 6a7fa2f54..6ffa1cb14 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); |