summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-09-25 16:38:01 +0200
committerBram Moolenaar <Bram@vim.org>2015-09-25 16:38:01 +0200
commit4d0c7bc74ac6fad5cb599dc3ade6996e848d83b6 (patch)
tree08b12183ff166ec76ffdcfbf4b147b5501f124e4 /src
parentb0262f239e77480f81fa3345491b7b6d52a17f6d (diff)
downloadvim-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.c2
-rw-r--r--src/version.c2
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,