diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-09-21 13:40:17 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-09-21 13:40:17 +0200 |
commit | 50f834dfb2a06e7e5ecf937bc32d6d711e5883a5 (patch) | |
tree | 163d4e678bc3c2002cc5186e7d365afb8631dd96 /src/option.c | |
parent | 7f78bd73d6dd536a66cd58b8d25e7d6f142879d6 (diff) | |
download | vim-git-50f834dfb2a06e7e5ecf937bc32d6d711e5883a5.tar.gz |
updated for version 7.3.316v7.3.316
Problem: Crash when 'colorcolumn' is set and closing buffer.
Solution: Check for w_buffer to be NULL. (Yasuhiro Matsumoto)
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 == '+') |