Karsten Hopp 0df9d9
To: vim_dev@googlegroups.com
Karsten Hopp 0df9d9
Subject: Patch 7.4.545
Karsten Hopp 0df9d9
Fcc: outbox
Karsten Hopp 0df9d9
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 0df9d9
Mime-Version: 1.0
Karsten Hopp 0df9d9
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 0df9d9
Content-Transfer-Encoding: 8bit
Karsten Hopp 0df9d9
------------
Karsten Hopp 0df9d9
Karsten Hopp 0df9d9
Patch 7.4.545
Karsten Hopp 0df9d9
Problem:    Highlighting for multi-line matches is not correct.
Karsten Hopp 0df9d9
Solution:   Stop highlight at the end of the match. (Hirohito Higashi)
Karsten Hopp 0df9d9
Files:	    src/screen.c
Karsten Hopp 0df9d9
Karsten Hopp 0df9d9
Karsten Hopp 0df9d9
*** ../vim-7.4.544/src/screen.c	2014-11-27 13:37:07.399540002 +0100
Karsten Hopp 0df9d9
--- src/screen.c	2014-12-13 03:30:31.520358269 +0100
Karsten Hopp 0df9d9
***************
Karsten Hopp 0df9d9
*** 3864,3872 ****
Karsten Hopp 0df9d9
  				&& v >= (long)shl->startcol
Karsten Hopp 0df9d9
  				&& v < (long)shl->endcol)
Karsten Hopp 0df9d9
  			{
Karsten Hopp 0df9d9
  			    shl->attr_cur = shl->attr;
Karsten Hopp 0df9d9
  			}
Karsten Hopp 0df9d9
! 			else if (v >= (long)shl->endcol && shl->lnum == lnum)
Karsten Hopp 0df9d9
  			{
Karsten Hopp 0df9d9
  			    shl->attr_cur = 0;
Karsten Hopp 0df9d9
  			    next_search_hl(wp, shl, lnum, (colnr_T)v, cur);
Karsten Hopp 0df9d9
--- 3864,3878 ----
Karsten Hopp 0df9d9
  				&& v >= (long)shl->startcol
Karsten Hopp 0df9d9
  				&& v < (long)shl->endcol)
Karsten Hopp 0df9d9
  			{
Karsten Hopp 0df9d9
+ #ifdef FEAT_MBYTE
Karsten Hopp 0df9d9
+ 			    int tmp_col = v + MB_PTR2LEN(ptr);
Karsten Hopp 0df9d9
+ 
Karsten Hopp 0df9d9
+ 			    if (shl->endcol < tmp_col)
Karsten Hopp 0df9d9
+ 				shl->endcol = tmp_col;
Karsten Hopp 0df9d9
+ #endif
Karsten Hopp 0df9d9
  			    shl->attr_cur = shl->attr;
Karsten Hopp 0df9d9
  			}
Karsten Hopp 0df9d9
! 			else if (v == (long)shl->endcol)
Karsten Hopp 0df9d9
  			{
Karsten Hopp 0df9d9
  			    shl->attr_cur = 0;
Karsten Hopp 0df9d9
  			    next_search_hl(wp, shl, lnum, (colnr_T)v, cur);
Karsten Hopp 0df9d9
*** ../vim-7.4.544/src/version.c	2014-12-13 03:20:10.543067406 +0100
Karsten Hopp 0df9d9
--- src/version.c	2014-12-13 03:36:19.704599650 +0100
Karsten Hopp 0df9d9
***************
Karsten Hopp 0df9d9
*** 743,744 ****
Karsten Hopp 0df9d9
--- 743,746 ----
Karsten Hopp 0df9d9
  {   /* Add new patch number below this line */
Karsten Hopp 0df9d9
+ /**/
Karsten Hopp 0df9d9
+     545,
Karsten Hopp 0df9d9
  /**/
Karsten Hopp 0df9d9
Karsten Hopp 0df9d9
-- 
Karsten Hopp 0df9d9
You can test a person's importance in the organization by asking how much RAM
Karsten Hopp 0df9d9
his computer has.  Anybody who knows the answer to that question is not a
Karsten Hopp 0df9d9
decision-maker.
Karsten Hopp 0df9d9
				(Scott Adams - The Dilbert principle)
Karsten Hopp 0df9d9
Karsten Hopp 0df9d9
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 0df9d9
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 0df9d9
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 0df9d9
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///