Karsten Hopp ea4650
To: vim-dev@vim.org
Karsten Hopp ea4650
Subject: Patch 7.2.023
Karsten Hopp ea4650
Fcc: outbox
Karsten Hopp ea4650
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp ea4650
Mime-Version: 1.0
Karsten Hopp ea4650
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp ea4650
Content-Transfer-Encoding: 8bit
Karsten Hopp ea4650
------------
Karsten Hopp ea4650
Karsten Hopp ea4650
Patch 7.2.023
Karsten Hopp ea4650
Problem:    'cursorcolumn' is in the wrong place in a closed fold when the
Karsten Hopp ea4650
	    display is shifted left. (Gary Johnson)
Karsten Hopp ea4650
Solution:   Subtract w_skipcol or w_leftcol when needed.
Karsten Hopp ea4650
Files:	    src/screen.c
Karsten Hopp ea4650
Karsten Hopp ea4650
Karsten Hopp ea4650
*** ../vim-7.2.022/src/screen.c	Thu Jul 24 20:29:09 2008
Karsten Hopp ea4650
--- src/screen.c	Fri Sep 26 21:23:06 2008
Karsten Hopp ea4650
***************
Karsten Hopp ea4650
*** 2439,2447 ****
Karsten Hopp ea4650
  
Karsten Hopp ea4650
  #ifdef FEAT_SYN_HL
Karsten Hopp ea4650
      /* Show 'cursorcolumn' in the fold line. */
Karsten Hopp ea4650
!     if (wp->w_p_cuc && (int)wp->w_virtcol + txtcol < W_WIDTH(wp))
Karsten Hopp ea4650
! 	ScreenAttrs[off + wp->w_virtcol + txtcol] = hl_combine_attr(
Karsten Hopp ea4650
! 		 ScreenAttrs[off + wp->w_virtcol + txtcol], hl_attr(HLF_CUC));
Karsten Hopp ea4650
  #endif
Karsten Hopp ea4650
  
Karsten Hopp ea4650
      SCREEN_LINE(row + W_WINROW(wp), W_WINCOL(wp), (int)W_WIDTH(wp),
Karsten Hopp ea4650
--- 2439,2455 ----
Karsten Hopp ea4650
  
Karsten Hopp ea4650
  #ifdef FEAT_SYN_HL
Karsten Hopp ea4650
      /* Show 'cursorcolumn' in the fold line. */
Karsten Hopp ea4650
!     if (wp->w_p_cuc)
Karsten Hopp ea4650
!     {
Karsten Hopp ea4650
! 	txtcol += wp->w_virtcol;
Karsten Hopp ea4650
! 	if (wp->w_p_wrap)
Karsten Hopp ea4650
! 	    txtcol -= wp->w_skipcol;
Karsten Hopp ea4650
! 	else
Karsten Hopp ea4650
! 	    txtcol -= wp->w_leftcol;
Karsten Hopp ea4650
! 	if (txtcol >= 0 && txtcol < W_WIDTH(wp))
Karsten Hopp ea4650
! 	    ScreenAttrs[off + txtcol] = hl_combine_attr(
Karsten Hopp ea4650
! 				 ScreenAttrs[off + txtcol], hl_attr(HLF_CUC));
Karsten Hopp ea4650
!     }
Karsten Hopp ea4650
  #endif
Karsten Hopp ea4650
  
Karsten Hopp ea4650
      SCREEN_LINE(row + W_WINROW(wp), W_WINCOL(wp), (int)W_WIDTH(wp),
Karsten Hopp ea4650
*** ../vim-7.2.022/src/version.c	Sat Sep 20 16:26:10 2008
Karsten Hopp ea4650
--- src/version.c	Wed Oct  1 21:07:31 2008
Karsten Hopp ea4650
***************
Karsten Hopp ea4650
*** 678,679 ****
Karsten Hopp ea4650
--- 678,681 ----
Karsten Hopp ea4650
  {   /* Add new patch number below this line */
Karsten Hopp ea4650
+ /**/
Karsten Hopp ea4650
+     23,
Karsten Hopp ea4650
  /**/
Karsten Hopp ea4650
Karsten Hopp ea4650
-- 
Karsten Hopp ea4650
hundred-and-one symptoms of being an internet addict:
Karsten Hopp ea4650
124. You begin conversations with, "Who is your internet service provider?"
Karsten Hopp ea4650
Karsten Hopp ea4650
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp ea4650
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp ea4650
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp ea4650
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///