# HG changeset patch # User Bram Moolenaar # Date 1346248226 -7200 # Node ID 79ac6744237ce5076a6d2e2b21198dfddc2cc9dd # Parent 27a00ce01a2ae36bde0f41c5fb80211c08a1bf5b updated for version 7.3.642 Problem: Segfault with specific autocommands. Was OK after 7.3.449 and before 7.3.545. (Richard Brown) Solution: Pass TRUE for abort_if_last in the call to close_buffer(). (Christian Brabandt) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -720,6 +720,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 642, +/**/ 641, /**/ 640, diff --git a/src/window.c b/src/window.c --- a/src/window.c +++ b/src/window.c @@ -2269,7 +2269,7 @@ win_close(win, free_buf) #ifdef FEAT_AUTOCMD win->w_closing = TRUE; #endif - close_buffer(win, win->w_buffer, free_buf ? DOBUF_UNLOAD : 0, FALSE); + close_buffer(win, win->w_buffer, free_buf ? DOBUF_UNLOAD : 0, TRUE); #ifdef FEAT_AUTOCMD if (win_valid(win)) win->w_closing = FALSE;