mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
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:
@@ -7036,6 +7036,9 @@ check_colorcolumn(wp)
|
|||||||
int i;
|
int i;
|
||||||
int j = 0;
|
int j = 0;
|
||||||
|
|
||||||
|
if (wp->w_buffer == NULL)
|
||||||
|
return NULL; /* buffer was closed */
|
||||||
|
|
||||||
for (s = wp->w_p_cc; *s != NUL && count < 255;)
|
for (s = wp->w_p_cc; *s != NUL && count < 255;)
|
||||||
{
|
{
|
||||||
if (*s == '-' || *s == '+')
|
if (*s == '-' || *s == '+')
|
||||||
|
@@ -709,6 +709,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
316,
|
||||||
/**/
|
/**/
|
||||||
315,
|
315,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user