summaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-02-22 14:58:37 +0100
committerBram Moolenaar <Bram@vim.org>2012-02-22 14:58:37 +0100
commit42ec656524db254001caee8feb58d26f67b52fbe (patch)
tree1ca4411bcc3addd4cd05a3ed629193c6ca04409c /src/misc2.c
parentfb7df7be2f7c80428a3379010ca701689c85aa12 (diff)
downloadvim-git-42ec656524db254001caee8feb58d26f67b52fbe.tar.gz
updated for version 7.3.449v7.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.
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc2.c b/src/misc2.c
index 045117fe0..a070a20a5 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -1173,7 +1173,7 @@ free_all_mem()
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