summaryrefslogtreecommitdiffstats
path: root/src/globals.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-04-06 20:45:43 +0200
committerBram Moolenaar <Bram@vim.org>2014-04-06 20:45:43 +0200
commit4c7ab1bb5722de662db04550b74256671f20c4a2 (patch)
tree9fc51404bf8d87a9aa99df7ff30f18617f03513b /src/globals.h
parent75b8156a445fb4788dc3d1946764af30b5c50ac4 (diff)
updated for version 7.4.251v7.4.251
Problem: Crash when BufAdd autocommand wipes out the buffer. Solution: Check for buffer to still be valid. Postpone freeing the buffer structure. (Hirohito Higashi)
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h
index 0281103360..a17430d065 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -386,6 +386,11 @@ EXTERN int keep_filetype INIT(= FALSE); /* value for did_filetype when
/* When deleting the current buffer, another one must be loaded. If we know
* which one is preferred, au_new_curbuf is set to it */
EXTERN buf_T *au_new_curbuf INIT(= NULL);
+
+/* When deleting the buffer and autocmd_busy is TRUE, do not free the buffer
+ * but link it in the list starting with au_pending_free_buf, using b_next.
+ * Free the buffer when autocmd_busy is set to FALSE. */
+EXTERN buf_T *au_pending_free_buf INIT(= NULL);
#endif
#ifdef FEAT_MOUSE