diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-09-25 16:38:01 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-09-25 16:38:01 +0200 |
commit | 4d0c7bc74ac6fad5cb599dc3ade6996e848d83b6 (patch) | |
tree | 08b12183ff166ec76ffdcfbf4b147b5501f124e4 /src | |
parent | b0262f239e77480f81fa3345491b7b6d52a17f6d (diff) | |
download | vim-4d0c7bc74ac6fad5cb599dc3ade6996e848d83b6.zip |
patch 7.4.877
Problem: ":find" sometimes fails. (Excanoe)
Solution: Compare current characters instead of previous ones.
Diffstat (limited to 'src')
-rw-r--r-- | src/misc2.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
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 @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 877, +/**/ 876, /**/ 875, |