Karsten Hopp 187c4e
To: vim_dev@googlegroups.com
Karsten Hopp 187c4e
Subject: Patch 7.3.316
Karsten Hopp 187c4e
Fcc: outbox
Karsten Hopp 187c4e
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 187c4e
Mime-Version: 1.0
Karsten Hopp 187c4e
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 187c4e
Content-Transfer-Encoding: 8bit
Karsten Hopp 187c4e
------------
Karsten Hopp 187c4e
Karsten Hopp 187c4e
Patch 7.3.316 (after 7.3.306)
Karsten Hopp 187c4e
Problem:    Crash when 'colorcolumn' is set and closing buffer.
Karsten Hopp 187c4e
Solution:   Check for w_buffer to be NULL. (Yasuhiro Matsumoto)
Karsten Hopp 187c4e
Files:	    src/option.c
Karsten Hopp 187c4e
Karsten Hopp 187c4e
Karsten Hopp 187c4e
*** ../vim-7.3.315/src/option.c	2011-06-12 22:13:37.000000000 +0200
Karsten Hopp 187c4e
--- src/option.c	2011-09-21 13:26:31.000000000 +0200
Karsten Hopp 187c4e
***************
Karsten Hopp 187c4e
*** 7036,7041 ****
Karsten Hopp 187c4e
--- 7036,7044 ----
Karsten Hopp 187c4e
      int		i;
Karsten Hopp 187c4e
      int		j = 0;
Karsten Hopp 187c4e
  
Karsten Hopp 187c4e
+     if (wp->w_buffer == NULL)
Karsten Hopp 187c4e
+ 	return NULL;  /* buffer was closed */
Karsten Hopp 187c4e
+ 
Karsten Hopp 187c4e
      for (s = wp->w_p_cc; *s != NUL && count < 255;)
Karsten Hopp 187c4e
      {
Karsten Hopp 187c4e
  	if (*s == '-' || *s == '+')
Karsten Hopp 187c4e
*** ../vim-7.3.315/src/version.c	2011-09-14 19:04:35.000000000 +0200
Karsten Hopp 187c4e
--- src/version.c	2011-09-21 13:40:05.000000000 +0200
Karsten Hopp 187c4e
***************
Karsten Hopp 187c4e
*** 711,712 ****
Karsten Hopp 187c4e
--- 711,714 ----
Karsten Hopp 187c4e
  {   /* Add new patch number below this line */
Karsten Hopp 187c4e
+ /**/
Karsten Hopp 187c4e
+     316,
Karsten Hopp 187c4e
  /**/
Karsten Hopp 187c4e
Karsten Hopp 187c4e
-- 
Karsten Hopp 187c4e
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 187c4e
25. You believe nothing looks sexier than a man in boxer shorts illuminated
Karsten Hopp 187c4e
    only by a 17" inch svga monitor.
Karsten Hopp 187c4e
Karsten Hopp 187c4e
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 187c4e
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 187c4e
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 187c4e
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///