]> granicus.if.org Git - vim/commitdiff
updated for version 7.0-178 v7.0.178
authorBram Moolenaar <Bram@vim.org>
Tue, 5 Dec 2006 21:06:46 +0000 (21:06 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 5 Dec 2006 21:06:46 +0000 (21:06 +0000)
src/mbyte.c
src/version.c

index 846ce98f71db84ea2ad40abf00c5d15bc2e68435..735bf6544b997a7d2e4d5e1a08073fe781af5761 100644 (file)
@@ -2294,8 +2294,14 @@ mb_strnicmp(s1, s2, nn)
            }
            /* Check directly first, it's faster. */
            for (j = 0; j < l; ++j)
+           {
                if (s1[i + j] != s2[i + j])
                    break;
+               if (s1[i + j] == 0)
+                   /* Both stings have the same bytes but are incomplete or
+                    * have illegal bytes, accept them as equal. */
+                   l = j;
+           }
            if (j < l)
            {
                /* If one of the two characters is incomplete return -1. */
index e20349dc97307f8e75ff8636ce8216507eef998b..09cbf736bb9a109fcf9ff99d045bb28fa1ecd1ac 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    178,
 /**/
     177,
 /**/