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:
parent
7f78bd73d6
commit
50f834dfb2
@ -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 == '+')
|
||||
|
@ -709,6 +709,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
316,
|
||||
/**/
|
||||
315,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user