diff options
-rw-r--r-- | src/nvim/diff.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c index 8dc9d0ee10..e7a176d336 100644 --- a/src/nvim/diff.c +++ b/src/nvim/diff.c @@ -1609,8 +1609,7 @@ static bool diff_equal_char(const char_u *const p1, const char_u *const p2, } if (l > 1) { if (STRNCMP(p1, p2, l) != 0 - && (!enc_utf8 - || !(diff_flags & DIFF_ICASE) + && (!(diff_flags & DIFF_ICASE) || utf_fold(utf_ptr2char(p1)) != utf_fold(utf_ptr2char(p2)))) { return false; } |