1
0
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:
Bram Moolenaar 2013-05-21 12:34:17 +02:00
parent 09ea9fcf3f
commit 0fabe3fdbe
4 changed files with 8 additions and 2 deletions

View File

@ -2931,7 +2931,7 @@ again:
}
if (c == NUL)
n = 0;
cc = (char_u *)&c;
cc = reginput;
/* swap lists */
thislist = &list[flag];
@ -2960,7 +2960,7 @@ again:
if (neglist->n > 0)
{
t = &neglist->t[0];
neglist->n --;
neglist->n--;
i--;
}
else

View File

@ -25,6 +25,9 @@ STARTTEST
:call add(tl, [' [^ ]\+', 'start มabcdม ', ' มabcdม'])
: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
:"

View File

@ -4,3 +4,4 @@ OK - [[=a=]]\+
OK - [^ม ]\+
OK - [^ ]\+
OK - [ม[:alpha:][=a=]]\+
OK - \p\+

View File

@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
982,
/**/
981,
/**/