commit | 4d0c7bc74ac6fad5cb599dc3ade6996e848d83b6 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Sep 25 16:38:01 2015 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Sep 25 16:38:01 2015 +0200 |
tree | 08b12183ff166ec76ffdcfbf4b147b5501f124e4 | |
parent | b0262f239e77480f81fa3345491b7b6d52a17f6d [diff] [blame] |
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 407d6b5..4f82117 100644 --- a/src/misc2.c +++ b/src/misc2.c
@@ -5084,7 +5084,7 @@ i += MB_PTR2LEN(s1 + i); j += MB_PTR2LEN(s2 + j); } - return c1 == c2; + return s1[i] == s2[j]; } #endif