Karsten Hopp fdbbb8
To: vim_dev@googlegroups.com
Karsten Hopp fdbbb8
Subject: Patch 7.3.799
Karsten Hopp fdbbb8
Fcc: outbox
Karsten Hopp fdbbb8
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp fdbbb8
Mime-Version: 1.0
Karsten Hopp fdbbb8
Content-Type: text/plain; charset=UTF-8
Karsten Hopp fdbbb8
Content-Transfer-Encoding: 8bit
Karsten Hopp fdbbb8
------------
Karsten Hopp fdbbb8
Karsten Hopp fdbbb8
Patch 7.3.799
Karsten Hopp fdbbb8
Problem:    The color column is not correct when entering a buffer. (Ben
Karsten Hopp fdbbb8
	    Fritz)
Karsten Hopp fdbbb8
Solution:   Call check_colorcolumn() if 'textwidth' changed. (Christian
Karsten Hopp fdbbb8
	    Brabandt)
Karsten Hopp fdbbb8
Files:	    src/buffer.c
Karsten Hopp fdbbb8
Karsten Hopp fdbbb8
Karsten Hopp fdbbb8
*** ../vim-7.3.798/src/buffer.c	2012-11-20 12:16:54.000000000 +0100
Karsten Hopp fdbbb8
--- src/buffer.c	2013-02-06 11:52:54.000000000 +0100
Karsten Hopp fdbbb8
***************
Karsten Hopp fdbbb8
*** 1441,1446 ****
Karsten Hopp fdbbb8
--- 1441,1448 ----
Karsten Hopp fdbbb8
  enter_buffer(buf)
Karsten Hopp fdbbb8
      buf_T	*buf;
Karsten Hopp fdbbb8
  {
Karsten Hopp fdbbb8
+     long old_tw = curbuf->b_p_tw;
Karsten Hopp fdbbb8
+ 
Karsten Hopp fdbbb8
      /* Copy buffer and window local option values.  Not for a help buffer. */
Karsten Hopp fdbbb8
      buf_copy_options(buf, BCO_ENTER | BCO_NOHELP);
Karsten Hopp fdbbb8
      if (!buf->b_help)
Karsten Hopp fdbbb8
***************
Karsten Hopp fdbbb8
*** 1464,1469 ****
Karsten Hopp fdbbb8
--- 1466,1473 ----
Karsten Hopp fdbbb8
  
Karsten Hopp fdbbb8
  #ifdef FEAT_SYN_HL
Karsten Hopp fdbbb8
      curwin->w_s = &(buf->b_s);
Karsten Hopp fdbbb8
+     if (old_tw != buf->b_p_tw)
Karsten Hopp fdbbb8
+ 	check_colorcolumn(curwin);
Karsten Hopp fdbbb8
  #endif
Karsten Hopp fdbbb8
  
Karsten Hopp fdbbb8
      /* Cursor on first line by default. */
Karsten Hopp fdbbb8
*** ../vim-7.3.798/src/version.c	2013-01-31 21:09:10.000000000 +0100
Karsten Hopp fdbbb8
--- src/version.c	2013-02-06 11:55:06.000000000 +0100
Karsten Hopp fdbbb8
***************
Karsten Hopp fdbbb8
*** 727,728 ****
Karsten Hopp fdbbb8
--- 727,730 ----
Karsten Hopp fdbbb8
  {   /* Add new patch number below this line */
Karsten Hopp fdbbb8
+ /**/
Karsten Hopp fdbbb8
+     799,
Karsten Hopp fdbbb8
  /**/
Karsten Hopp fdbbb8
Karsten Hopp fdbbb8
-- 
Karsten Hopp fdbbb8
I wonder, do vegetarians eat fruit bats?
Karsten Hopp fdbbb8
Karsten Hopp fdbbb8
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp fdbbb8
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp fdbbb8
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp fdbbb8
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///