Karsten Hopp cba6d5
To: vim-dev@vim.org
Karsten Hopp cba6d5
Subject: Patch 7.2.281
Karsten Hopp cba6d5
Fcc: outbox
Karsten Hopp cba6d5
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp cba6d5
Mime-Version: 1.0
Karsten Hopp cba6d5
Content-Type: text/plain; charset=UTF-8
Karsten Hopp cba6d5
Content-Transfer-Encoding: 8bit
Karsten Hopp cba6d5
------------
Karsten Hopp cba6d5
Karsten Hopp cba6d5
Patch 7.2.281
Karsten Hopp cba6d5
Problem:    'cursorcolumn' highlighting is wrong in diff mode.
Karsten Hopp cba6d5
Solution:   Adjust the column computation. (Lech Lorens)
Karsten Hopp cba6d5
Files:	    src/screen.c
Karsten Hopp cba6d5
Karsten Hopp cba6d5
Karsten Hopp cba6d5
*** ../vim-7.2.280/src/screen.c	2009-11-03 17:20:18.000000000 +0100
Karsten Hopp cba6d5
--- src/screen.c	2009-11-03 17:13:16.000000000 +0100
Karsten Hopp cba6d5
***************
Karsten Hopp cba6d5
*** 3008,3018 ****
Karsten Hopp cba6d5
  	    mb_ptr_adv(ptr);
Karsten Hopp cba6d5
  	}
Karsten Hopp cba6d5
  
Karsten Hopp cba6d5
! #ifdef FEAT_VIRTUALEDIT
Karsten Hopp cba6d5
! 	/* When 'virtualedit' is set the end of the line may be before the
Karsten Hopp cba6d5
! 	 * start of the displayed part. */
Karsten Hopp cba6d5
! 	if (vcol < v && *ptr == NUL && virtual_active())
Karsten Hopp cba6d5
  	    vcol = v;
Karsten Hopp cba6d5
  #endif
Karsten Hopp cba6d5
  
Karsten Hopp cba6d5
  	/* Handle a character that's not completely on the screen: Put ptr at
Karsten Hopp cba6d5
--- 3008,3040 ----
Karsten Hopp cba6d5
  	    mb_ptr_adv(ptr);
Karsten Hopp cba6d5
  	}
Karsten Hopp cba6d5
  
Karsten Hopp cba6d5
! #if defined(FEAT_SYN_HL) || defined(FEAT_VIRTUALEDIT) || defined(FEAT_VISUAL)
Karsten Hopp cba6d5
! 	/* When:
Karsten Hopp cba6d5
! 	 * - 'cuc' is set, or
Karsten Hopp cba6d5
! 	 * - 'virtualedit' is set, or
Karsten Hopp cba6d5
! 	 * - the visual mode is active,
Karsten Hopp cba6d5
! 	 * the end of the line may be before the start of the displayed part.
Karsten Hopp cba6d5
! 	 */
Karsten Hopp cba6d5
! 	if (vcol < v && (
Karsten Hopp cba6d5
! # ifdef FEAT_SYN_HL
Karsten Hopp cba6d5
! 	     wp->w_p_cuc
Karsten Hopp cba6d5
! #  if defined(FEAT_VIRTUALEDIT) || defined(FEAT_VISUAL)
Karsten Hopp cba6d5
! 	     ||
Karsten Hopp cba6d5
! #  endif
Karsten Hopp cba6d5
! # endif
Karsten Hopp cba6d5
! # ifdef FEAT_VIRTUALEDIT
Karsten Hopp cba6d5
! 	     virtual_active()
Karsten Hopp cba6d5
! #  ifdef FEAT_VISUAL
Karsten Hopp cba6d5
! 	     ||
Karsten Hopp cba6d5
! #  endif
Karsten Hopp cba6d5
! # endif
Karsten Hopp cba6d5
! # ifdef FEAT_VISUAL
Karsten Hopp cba6d5
! 	     (VIsual_active && wp->w_buffer == curwin->w_buffer)
Karsten Hopp cba6d5
! # endif
Karsten Hopp cba6d5
! 	     ))
Karsten Hopp cba6d5
! 	{
Karsten Hopp cba6d5
  	    vcol = v;
Karsten Hopp cba6d5
+ 	}
Karsten Hopp cba6d5
  #endif
Karsten Hopp cba6d5
  
Karsten Hopp cba6d5
  	/* Handle a character that's not completely on the screen: Put ptr at
Karsten Hopp cba6d5
*** ../vim-7.2.280/src/version.c	2009-11-03 17:20:18.000000000 +0100
Karsten Hopp cba6d5
--- src/version.c	2009-11-03 17:34:54.000000000 +0100
Karsten Hopp cba6d5
***************
Karsten Hopp cba6d5
*** 678,679 ****
Karsten Hopp cba6d5
--- 678,681 ----
Karsten Hopp cba6d5
  {   /* Add new patch number below this line */
Karsten Hopp cba6d5
+ /**/
Karsten Hopp cba6d5
+     281,
Karsten Hopp cba6d5
  /**/
Karsten Hopp cba6d5
Karsten Hopp cba6d5
-- 
Karsten Hopp cba6d5
Every person is responsible for the choices he makes.
Karsten Hopp cba6d5
Karsten Hopp cba6d5
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp cba6d5
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp cba6d5
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp cba6d5
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///