Skip to content

Commit c9cd046

Browse files
committed
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)
1 parent 3323835 commit c9cd046

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/option.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7036,6 +7036,9 @@ check_colorcolumn(wp)
70367036
int i;
70377037
int j = 0;
70387038

7039+
if (wp->w_buffer == NULL)
7040+
return NULL; /* buffer was closed */
7041+
70397042
for (s = wp->w_p_cc; *s != NUL && count < 255;)
70407043
{
70417044
if (*s == '-' || *s == '+')

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,8 @@ static char *(features[]) =
709709

710710
static int included_patches[] =
711711
{ /* Add new patch number below this line */
712+
/**/
713+
316,
712714
/**/
713715
315,
714716
/**/

0 commit comments

Comments
 (0)