# HG changeset patch # User Bram Moolenaar # Date 1316605217 -7200 # Node ID 33c140e4664d102c34ec3ec5a17318f75cf475d7 # Parent 15b934a1664197ea570303f1c57cb1fc1f4d8a61 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) diff --git a/src/option.c b/src/option.c --- a/src/option.c +++ b/src/option.c @@ -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 == '+') diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -710,6 +710,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 316, +/**/ 315, /**/ 314,