]> granicus.if.org Git - vim/commitdiff
patch 7.4.877 v7.4.877
authorBram Moolenaar <Bram@vim.org>
Fri, 25 Sep 2015 14:38:01 +0000 (16:38 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 25 Sep 2015 14:38:01 +0000 (16:38 +0200)
Problem:    ":find" sometimes fails. (Excanoe)
Solution:   Compare current characters instead of previous ones.

src/misc2.c
src/version.c

index 407d6b5d550f54ec047034d7acd6fdc57d10d6ee..4f821178fbf6ce1dc2d9fee6cc7c424852f3e170 100644 (file)
@@ -5084,7 +5084,7 @@ ff_wc_equal(s1, s2)
         i += MB_PTR2LEN(s1 + i);
         j += MB_PTR2LEN(s2 + j);
     }
-    return c1 == c2;
+    return s1[i] == s2[j];
 }
 #endif
 
index b24af2326c530cf2809a3a94119e7c84eecafaf3..1c9eeedeb81d907e6aa0b8575a7f39dc8d678c09 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    877,
 /**/
     876,
 /**/