Mercurial > vim
changeset 1710:cdf37c8f4616 v7.2.008
updated for version 7.2-008
author | vimboss |
---|---|
date | Mon, 01 Sep 2008 15:33:17 +0000 |
parents | 71eaeb69efe4 |
children | 20b2e52ca962 |
files | src/buffer.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buffer.c +++ b/src/buffer.c @@ -1351,11 +1351,12 @@ set_curbuf(buf, action) } } #ifdef FEAT_AUTOCMD + /* An autocommand may have deleted "buf", already entered it (e.g., when + * it did ":bunload") or aborted the script processing! */ # ifdef FEAT_EVAL - /* An autocommand may have deleted buf or aborted the script processing! */ - if (buf_valid(buf) && !aborting()) + if (buf_valid(buf) && buf != curbuf && !aborting()) # else - if (buf_valid(buf)) /* an autocommand may have deleted buf! */ + if (buf_valid(buf) && buf != curbuf) # endif #endif enter_buffer(buf);