jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone
073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.362
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.362
073263
Problem:    When matchaddpos() uses a length smaller than the number of bytes
073263
	    in the (last) character the highlight continues until the end of
073263
	    the line.
073263
Solution:   Change condition from equal to larger-or-equal.
073263
Files:	    src/screen.c
073263
073263
073263
*** ../vim-7.4.361/src/screen.c	2014-07-03 22:54:04.911859458 +0200
073263
--- src/screen.c	2014-07-09 20:14:46.611627298 +0200
073263
***************
073263
*** 3852,3858 ****
073263
  			{
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
--- 3852,3858 ----
073263
  			{
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.361/src/version.c	2014-07-09 19:58:21.115647328 +0200
073263
--- src/version.c	2014-07-09 20:20:14.423620635 +0200
073263
***************
073263
*** 736,737 ****
073263
--- 736,739 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     362,
073263
  /**/
073263
073263
-- 
073263
Compilation process failed successfully.
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    ///