Mercurial > vim
comparison src/window.c @ 3768:79ac6744237c v7.3.642
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 29 Aug 2012 15:50:26 +0200 |
parents | d47e6222d1cd |
children | 915fb3d2dd8f |
comparison
equal
deleted
inserted
replaced
3767:27a00ce01a2a | 3768:79ac6744237c |
---|---|
2267 if (win->w_buffer != NULL) | 2267 if (win->w_buffer != NULL) |
2268 { | 2268 { |
2269 #ifdef FEAT_AUTOCMD | 2269 #ifdef FEAT_AUTOCMD |
2270 win->w_closing = TRUE; | 2270 win->w_closing = TRUE; |
2271 #endif | 2271 #endif |
2272 close_buffer(win, win->w_buffer, free_buf ? DOBUF_UNLOAD : 0, FALSE); | 2272 close_buffer(win, win->w_buffer, free_buf ? DOBUF_UNLOAD : 0, TRUE); |
2273 #ifdef FEAT_AUTOCMD | 2273 #ifdef FEAT_AUTOCMD |
2274 if (win_valid(win)) | 2274 if (win_valid(win)) |
2275 win->w_closing = FALSE; | 2275 win->w_closing = FALSE; |
2276 #endif | 2276 #endif |
2277 } | 2277 } |