summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-01-17 14:00:11 +0100
committerBram Moolenaar <Bram@vim.org>2013-01-17 14:00:11 +0100
commit802418d5eb5c98dcbe53390d1eceba92dd097aa4 (patch)
tree7d7409b452c19f8b81df8480f135836ec41d1502 /src/main.c
parentc4fba6f8811d8f205f5c9772d4797691e615c6a2 (diff)
downloadvim-git-802418d5eb5c98dcbe53390d1eceba92dd097aa4.tar.gz
updated for version 7.3.765v7.3.765
Problem: Segfault when doing "cclose" on BufUnload in a python function. (Sean Reifschneider) Solution: Skip window with NULL buffer. (Christian Brabandt)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 66726d279..6581ba939 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1376,6 +1376,9 @@ getout(exitval)
for (wp = (tp == curtab)
? firstwin : tp->tp_firstwin; wp != NULL; wp = wp->w_next)
{
+ if (wp->w_buffer == NULL)
+ /* Autocmd must have close the buffer already, skip. */
+ continue;
buf = wp->w_buffer;
if (buf->b_changedtick != -1)
{