949ffb1
To: vim-dev@vim.org
949ffb1
Subject: Patch 7.2.140
949ffb1
Fcc: outbox
949ffb1
From: Bram Moolenaar <Bram@moolenaar.net>
949ffb1
Mime-Version: 1.0
949ffb1
Content-Type: text/plain; charset=ISO-8859-1
949ffb1
Content-Transfer-Encoding: 8bit
949ffb1
------------
949ffb1
949ffb1
Patch 7.2.140
949ffb1
Problem:    Diff highlighting isn't displayed before the Visual area if it
949ffb1
	    starts at the cursor position. (Markus Heidelberg)
949ffb1
Solution:   Also check fromcol_prev.
949ffb1
Files:	    src/screen.c
949ffb1
949ffb1
949ffb1
*** ../vim-7.2.139/src/screen.c	Sun Feb 22 21:12:22 2009
949ffb1
--- src/screen.c	Wed Mar 11 13:59:24 2009
949ffb1
***************
949ffb1
*** 3555,3561 ****
949ffb1
  		/* Use line_attr when not in the Visual or 'incsearch' area
949ffb1
  		 * (area_attr may be 0 when "noinvcur" is set). */
949ffb1
  	    else if (line_attr != 0 && ((fromcol == -10 && tocol == MAXCOL)
949ffb1
! 					|| (vcol < fromcol || vcol >= tocol)))
949ffb1
  		char_attr = line_attr;
949ffb1
  #endif
949ffb1
  	    else
949ffb1
--- 3555,3562 ----
949ffb1
  		/* Use line_attr when not in the Visual or 'incsearch' area
949ffb1
  		 * (area_attr may be 0 when "noinvcur" is set). */
949ffb1
  	    else if (line_attr != 0 && ((fromcol == -10 && tocol == MAXCOL)
949ffb1
! 				|| vcol < fromcol || vcol_prev < fromcol_prev
949ffb1
! 				|| vcol >= tocol))
949ffb1
  		char_attr = line_attr;
949ffb1
  #endif
949ffb1
  	    else
949ffb1
*** ../vim-7.2.139/src/version.c	Wed Mar 11 17:27:46 2009
949ffb1
--- src/version.c	Wed Mar 11 17:42:19 2009
949ffb1
***************
949ffb1
*** 678,679 ****
949ffb1
--- 678,681 ----
949ffb1
  {   /* Add new patch number below this line */
949ffb1
+ /**/
949ffb1
+     140,
949ffb1
  /**/
949ffb1
949ffb1
-- 
949ffb1
Some of the well know MS-Windows errors:
949ffb1
	EMEMORY		Memory error caused by..., eh...
949ffb1
	ELICENSE	Your license has expired, give us more money!
949ffb1
	EMOUSE		Mouse moved, reinstall Windows
949ffb1
	EILLEGAL	Illegal error, you are not allowed to see this
949ffb1
	EVIRUS		Undetectable virus found
949ffb1
949ffb1
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
949ffb1
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
949ffb1
\\\        download, build and distribute -- http://www.A-A-P.org        ///
949ffb1
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///