diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-01-17 14:00:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-01-17 14:00:11 +0100 |
commit | 802418d5eb5c98dcbe53390d1eceba92dd097aa4 (patch) | |
tree | 7d7409b452c19f8b81df8480f135836ec41d1502 /src/main.c | |
parent | c4fba6f8811d8f205f5c9772d4797691e615c6a2 (diff) | |
download | vim-802418d5eb5c98dcbe53390d1eceba92dd097aa4.zip |
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)
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
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) { |