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