1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2012-08-29 15:50:26 +02:00
parent 002a4edc5b
commit 8f91399366
2 changed files with 3 additions and 1 deletions

View 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;