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/misc2.c | |
parent | b0262f239e77480f81fa3345491b7b6d52a17f6d (diff) | |
download | vim-git-4d0c7bc74ac6fad5cb599dc3ade6996e848d83b6.tar.gz |
patch 7.4.877v7.4.877
Problem: ":find" sometimes fails. (Excanoe)
Solution: Compare current characters instead of previous ones.
Diffstat (limited to 'src/misc2.c')
-rw-r--r-- | src/misc2.c | 2 |
1 files changed, 1 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 |