From: Bram Moolenaar Date: Fri, 25 Sep 2015 14:38:01 +0000 (+0200) Subject: patch 7.4.877 X-Git-Tag: v7.4.877 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d0c7bc74ac6fad5cb599dc3ade6996e848d83b6;p=vim patch 7.4.877 Problem: ":find" sometimes fails. (Excanoe) Solution: Compare current characters instead of previous ones. --- diff --git a/src/misc2.c b/src/misc2.c index 407d6b5d5..4f821178f 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -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 diff --git a/src/version.c b/src/version.c index b24af2326..1c9eeedeb 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 877, /**/ 876, /**/