]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.642 v7.3.642
authorBram Moolenaar <Bram@vim.org>
Wed, 29 Aug 2012 13:50:26 +0000 (15:50 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 29 Aug 2012 13:50:26 +0000 (15:50 +0200)
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)

src/version.c
src/window.c

index 123d935769e3798fd9410b5fba557f81c9099991..767c4c0d3a3bb772a80641ab947eb581d8ebcb5b 100644 (file)
@@ -719,6 +719,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    642,
 /**/
     641,
 /**/
index e1dc940398d54d9987e9587b48fa6e279c59cc25..e37450d98e15f1241d39da8480da6885ec393cb3 100644 (file)
@@ -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;