mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 19:25:11 -07:00
diff: drop enc_utf8 check in diff_equal_char()
enc_utf8 is always true for nvim.
This commit is contained in:
parent
fd334ec2a8
commit
90128843f6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user