]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.982 v7.3.982
authorBram Moolenaar <Bram@vim.org>
Tue, 21 May 2013 10:34:17 +0000 (12:34 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 21 May 2013 10:34:17 +0000 (12:34 +0200)
Problem:    In the new regexp engine \p does not work on multi-byte
            characters.
Solution:   Don't point to an integer but the characters.

src/regexp_nfa.c
src/testdir/test95.in
src/testdir/test95.ok
src/version.c

index d70e46a6f1c2658dba575dd97b0b5f5e68363679..9ae59ae63f9860d5d86b58346ad46bba05458949 100644 (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
index 78a999f566510d5d4dd9140944643db1f2e9acfa..fb78b88dd17dbc8e4d663f9a82de7b92f38147a2 100644 (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
 
 :"
index d135b0eb84634f71d5449715159a85e98f05e336..cb1577a7e4fe774a82498b7205287205b9f7a4c6 100644 (file)
@@ -4,3 +4,4 @@ OK - [[=a=]]\+
 OK - [^ม ]\+
 OK -  [^ ]\+
 OK - [ม[:alpha:][=a=]]\+
+OK - \p\+
index 80ac755911b360e032d9cec2e39dbca6050655bc..a57f685bfece2f3b4f5bcc8fdb4adf9021dec1c3 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    982,
 /**/
     981,
 /**/