updated for version 7.3.449
Problem: Crash when a BufWinLeave autocommand closes the only other window.
(Daniel Hunt)
Solution: Abort closing a buffer when it becomes the only one.
diff --git a/src/misc2.c b/src/misc2.c
index 045117f..a070a20 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -1173,7 +1173,7 @@
for (buf = firstbuf; buf != NULL; )
{
nextbuf = buf->b_next;
- close_buffer(NULL, buf, DOBUF_WIPE);
+ close_buffer(NULL, buf, DOBUF_WIPE, FALSE);
if (buf_valid(buf))
buf = nextbuf; /* didn't work, try next one */
else