forked from aniani/vim
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.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user