forked from aniani/vim
updated for version 7.3.982
Problem: In the new regexp engine \p does not work on multi-byte characters. Solution: Don't point to an integer but the characters.
This commit is contained in:
parent
09ea9fcf3f
commit
0fabe3fdbe
@ -2931,7 +2931,7 @@ again:
|
|||||||
}
|
}
|
||||||
if (c == NUL)
|
if (c == NUL)
|
||||||
n = 0;
|
n = 0;
|
||||||
cc = (char_u *)&c;
|
cc = reginput;
|
||||||
|
|
||||||
/* swap lists */
|
/* swap lists */
|
||||||
thislist = &list[flag];
|
thislist = &list[flag];
|
||||||
@ -2960,7 +2960,7 @@ again:
|
|||||||
if (neglist->n > 0)
|
if (neglist->n > 0)
|
||||||
{
|
{
|
||||||
t = &neglist->t[0];
|
t = &neglist->t[0];
|
||||||
neglist->n --;
|
neglist->n--;
|
||||||
i--;
|
i--;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -25,6 +25,9 @@ STARTTEST
|
|||||||
:call add(tl, [' [^ ]\+', 'start มabcdม ', ' มabcdม'])
|
:call add(tl, [' [^ ]\+', 'start มabcdม ', ' มabcdม'])
|
||||||
:call add(tl, ['[ม[:alpha:][=a=]]\+', '879 aiaãมâมaiuvna ', 'aiaãมâมaiuvna'])
|
:call add(tl, ['[ม[:alpha:][=a=]]\+', '879 aiaãมâมaiuvna ', 'aiaãมâมaiuvna'])
|
||||||
|
|
||||||
|
:" this is not a normal "i" but 0xec
|
||||||
|
:call add(tl, ['\p\+', 'ìa', 'ìa'])
|
||||||
|
|
||||||
:"""" Run the tests
|
:"""" Run the tests
|
||||||
|
|
||||||
:"
|
:"
|
||||||
|
@ -4,3 +4,4 @@ OK - [[=a=]]\+
|
|||||||
OK - [^ม ]\+
|
OK - [^ม ]\+
|
||||||
OK - [^ ]\+
|
OK - [^ ]\+
|
||||||
OK - [ม[:alpha:][=a=]]\+
|
OK - [ม[:alpha:][=a=]]\+
|
||||||
|
OK - \p\+
|
||||||
|
@ -728,6 +728,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 */
|
||||||
|
/**/
|
||||||
|
982,
|
||||||
/**/
|
/**/
|
||||||
981,
|
981,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user