3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.362
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.362
3ef2ca
Problem:    When matchaddpos() uses a length smaller than the number of bytes
3ef2ca
	    in the (last) character the highlight continues until the end of
3ef2ca
	    the line.
3ef2ca
Solution:   Change condition from equal to larger-or-equal.
3ef2ca
Files:	    src/screen.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.361/src/screen.c	2014-07-03 22:54:04.911859458 +0200
3ef2ca
--- src/screen.c	2014-07-09 20:14:46.611627298 +0200
3ef2ca
***************
3ef2ca
*** 3852,3858 ****
3ef2ca
  			{
3ef2ca
  			    shl->attr_cur = shl->attr;
3ef2ca
  			}
3ef2ca
! 			else if (v == (long)shl->endcol)
3ef2ca
  			{
3ef2ca
  			    shl->attr_cur = 0;
3ef2ca
  			    next_search_hl(wp, shl, lnum, (colnr_T)v, cur);
3ef2ca
--- 3852,3858 ----
3ef2ca
  			{
3ef2ca
  			    shl->attr_cur = shl->attr;
3ef2ca
  			}
3ef2ca
! 			else if (v >= (long)shl->endcol)
3ef2ca
  			{
3ef2ca
  			    shl->attr_cur = 0;
3ef2ca
  			    next_search_hl(wp, shl, lnum, (colnr_T)v, cur);
3ef2ca
*** ../vim-7.4.361/src/version.c	2014-07-09 19:58:21.115647328 +0200
3ef2ca
--- src/version.c	2014-07-09 20:20:14.423620635 +0200
3ef2ca
***************
3ef2ca
*** 736,737 ****
3ef2ca
--- 736,739 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     362,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
Compilation process failed successfully.
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///