Karsten Hopp 451f2b
To: vim_dev@googlegroups.com
Karsten Hopp 451f2b
Subject: Patch 7.4.651
Karsten Hopp 451f2b
Fcc: outbox
Karsten Hopp 451f2b
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 451f2b
Mime-Version: 1.0
Karsten Hopp 451f2b
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 451f2b
Content-Transfer-Encoding: 8bit
Karsten Hopp 451f2b
------------
Karsten Hopp 451f2b
Karsten Hopp 451f2b
Patch 7.4.651 (after 7.4.582)
Karsten Hopp 451f2b
Problem:    Can't match "%>80v" properly for multi-byte characters.
Karsten Hopp 451f2b
Solution:   Multiply the character number by the maximum number of bytes in a
Karsten Hopp 451f2b
	    character. (Yasuhiro Matsumoto)
Karsten Hopp 451f2b
Files:	    src/regexp_nfa.c
Karsten Hopp 451f2b
Karsten Hopp 451f2b
Karsten Hopp 451f2b
*** ../vim-7.4.650/src/regexp_nfa.c	2015-02-10 18:18:13.000452461 +0100
Karsten Hopp 451f2b
--- src/regexp_nfa.c	2015-03-05 16:55:03.490881511 +0100
Karsten Hopp 451f2b
***************
Karsten Hopp 451f2b
*** 6477,6483 ****
Karsten Hopp 451f2b
  
Karsten Hopp 451f2b
  		    /* Bail out quickly when there can't be a match, avoid the
Karsten Hopp 451f2b
  		     * overhead of win_linetabsize() on long lines. */
Karsten Hopp 451f2b
! 		    if (op != 1 && col > t->state->val)
Karsten Hopp 451f2b
  			break;
Karsten Hopp 451f2b
  		    result = FALSE;
Karsten Hopp 451f2b
  		    if (op == 1 && col - 1 > t->state->val && col > 100)
Karsten Hopp 451f2b
--- 6477,6487 ----
Karsten Hopp 451f2b
  
Karsten Hopp 451f2b
  		    /* Bail out quickly when there can't be a match, avoid the
Karsten Hopp 451f2b
  		     * overhead of win_linetabsize() on long lines. */
Karsten Hopp 451f2b
! 		    if (op != 1 && col > t->state->val
Karsten Hopp 451f2b
! #ifdef FEAT_MBYTE
Karsten Hopp 451f2b
! 			    * (has_mbyte ? MB_MAXBYTES : 1)
Karsten Hopp 451f2b
! #endif
Karsten Hopp 451f2b
! 			    )
Karsten Hopp 451f2b
  			break;
Karsten Hopp 451f2b
  		    result = FALSE;
Karsten Hopp 451f2b
  		    if (op == 1 && col - 1 > t->state->val && col > 100)
Karsten Hopp 451f2b
*** ../vim-7.4.650/src/version.c	2015-03-05 16:47:15.772151680 +0100
Karsten Hopp 451f2b
--- src/version.c	2015-03-05 17:15:22.397141085 +0100
Karsten Hopp 451f2b
***************
Karsten Hopp 451f2b
*** 743,744 ****
Karsten Hopp 451f2b
--- 743,746 ----
Karsten Hopp 451f2b
  {   /* Add new patch number below this line */
Karsten Hopp 451f2b
+ /**/
Karsten Hopp 451f2b
+     651,
Karsten Hopp 451f2b
  /**/
Karsten Hopp 451f2b
Karsten Hopp 451f2b
-- 
Karsten Hopp 451f2b
FATHER: One day, lad, all this will be yours ...
Karsten Hopp 451f2b
PRINCE: What - the curtains?
Karsten Hopp 451f2b
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 451f2b
Karsten Hopp 451f2b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 451f2b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 451f2b
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 451f2b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///