From 50f834dfb2a06e7e5ecf937bc32d6d711e5883a5 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 21 Sep 2011 13:40:17 +0200 Subject: 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) --- src/option.c | 3 +++ src/version.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/option.c b/src/option.c index 4db302714..977d83802 100644 --- 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 index d0e649c33..d67e8d845 100644 --- a/src/version.c +++ b/src/version.c @@ -709,6 +709,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 316, /**/ 315, /**/ -- cgit v1.2.1