comparison src/main.c @ 4021:915fb3d2dd8f v7.3.765

updated for version 7.3.765 Problem: Segfault when doing "cclose" on BufUnload in a python function. (Sean Reifschneider) Solution: Skip window with NULL buffer. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Thu, 17 Jan 2013 14:00:11 +0100
parents 509e55bd4a3f
children ecf21be84def
comparison
equal deleted inserted replaced
4020:e8efce959c5b 4021:915fb3d2dd8f
1374 { 1374 {
1375 next_tp = tp->tp_next; 1375 next_tp = tp->tp_next;
1376 for (wp = (tp == curtab) 1376 for (wp = (tp == curtab)
1377 ? firstwin : tp->tp_firstwin; wp != NULL; wp = wp->w_next) 1377 ? firstwin : tp->tp_firstwin; wp != NULL; wp = wp->w_next)
1378 { 1378 {
1379 if (wp->w_buffer == NULL)
1380 /* Autocmd must have close the buffer already, skip. */
1381 continue;
1379 buf = wp->w_buffer; 1382 buf = wp->w_buffer;
1380 if (buf->b_changedtick != -1) 1383 if (buf->b_changedtick != -1)
1381 { 1384 {
1382 apply_autocmds(EVENT_BUFWINLEAVE, buf->b_fname, 1385 apply_autocmds(EVENT_BUFWINLEAVE, buf->b_fname,
1383 buf->b_fname, FALSE, buf); 1386 buf->b_fname, FALSE, buf);