forked from aniani/vim
updated for version 7.4.651
Problem: Can't match "%>80v" properly for multi-byte characters. Solution: Multiply the character number by the maximum number of bytes in a character. (Yasuhiro Matsumoto)
This commit is contained in:
parent
5d3fbf3bfe
commit
4f36dc3bf7
@ -6477,7 +6477,11 @@ nfa_regmatch(prog, start, submatch, m)
|
|||||||
|
|
||||||
/* Bail out quickly when there can't be a match, avoid the
|
/* Bail out quickly when there can't be a match, avoid the
|
||||||
* overhead of win_linetabsize() on long lines. */
|
* overhead of win_linetabsize() on long lines. */
|
||||||
if (op != 1 && col > t->state->val)
|
if (op != 1 && col > t->state->val
|
||||||
|
#ifdef FEAT_MBYTE
|
||||||
|
* (has_mbyte ? MB_MAXBYTES : 1)
|
||||||
|
#endif
|
||||||
|
)
|
||||||
break;
|
break;
|
||||||
result = FALSE;
|
result = FALSE;
|
||||||
if (op == 1 && col - 1 > t->state->val && col > 100)
|
if (op == 1 && col - 1 > t->state->val && col > 100)
|
||||||
|
@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
651,
|
||||||
/**/
|
/**/
|
||||||
650,
|
650,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user