1
0
forked from aniani/vim

updated for version 7.3.316

Problem:    Crash when 'colorcolumn' is set and closing buffer.
Solution:   Check for w_buffer to be NULL. (Yasuhiro Matsumoto)
This commit is contained in:
Bram Moolenaar 2011-09-21 13:40:17 +02:00
parent 7f78bd73d6
commit 50f834dfb2
2 changed files with 5 additions and 0 deletions

View File

@ -7036,6 +7036,9 @@ check_colorcolumn(wp)
int i;
int j = 0;
if (wp->w_buffer == NULL)
return NULL; /* buffer was closed */
for (s = wp->w_p_cc; *s != NUL && count < 255;)
{
if (*s == '-' || *s == '+')

View File

@ -709,6 +709,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
316,
/**/
315,
/**/