aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-10 17:53:33 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-11 14:54:48 -0400
commit90128843f68bc6b96cc7ab7a97d172aaae742aa4 (patch)
tree3142067e3a3ed171cda5b736c199838fd57dccbc
parentfd334ec2a8109aee71fa11697f4608de76144df8 (diff)
downloadrneovim-90128843f68bc6b96cc7ab7a97d172aaae742aa4.tar.gz
rneovim-90128843f68bc6b96cc7ab7a97d172aaae742aa4.tar.bz2
rneovim-90128843f68bc6b96cc7ab7a97d172aaae742aa4.zip
diff: drop enc_utf8 check in diff_equal_char()
enc_utf8 is always true for nvim.
-rw-r--r--src/nvim/diff.c3
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;
}