comparison src/misc2.c @ 3365:9ccdc4a69d8f v7.3.449

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.
author Bram Moolenaar <bram@vim.org>
date Wed, 22 Feb 2012 14:58:37 +0100
parents 20ca2e05ae20
children 1632640a24b4
comparison
equal deleted inserted replaced
3364:e8d5db3a6d4f 3365:9ccdc4a69d8f
1171 p_acd = FALSE; 1171 p_acd = FALSE;
1172 #endif 1172 #endif
1173 for (buf = firstbuf; buf != NULL; ) 1173 for (buf = firstbuf; buf != NULL; )
1174 { 1174 {
1175 nextbuf = buf->b_next; 1175 nextbuf = buf->b_next;
1176 close_buffer(NULL, buf, DOBUF_WIPE); 1176 close_buffer(NULL, buf, DOBUF_WIPE, FALSE);
1177 if (buf_valid(buf)) 1177 if (buf_valid(buf))
1178 buf = nextbuf; /* didn't work, try next one */ 1178 buf = nextbuf; /* didn't work, try next one */
1179 else 1179 else
1180 buf = firstbuf; 1180 buf = firstbuf;
1181 } 1181 }