patch 8.2.0938: NFA regexp uses tolower ()to compare ignore-case
Problem: NFA regexp uses tolower() to compare ignore-case. (Thayne McCombs)
Solution: Use utf_fold() when possible. (ref. neovim #12456)
diff --git a/src/diff.c b/src/diff.c
index 1b0ad47..bb95d5e 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -747,7 +747,7 @@
// xdiff doesn't support ignoring case, fold-case the text.
c = PTR2CHAR(s);
- c = enc_utf8 ? utf_fold(c) : MB_TOLOWER(c);
+ c = MB_CASEFOLD(c);
orig_len = mb_ptr2len(s);
if (mb_char2bytes(c, cbuf) != orig_len)
// TODO: handle byte length difference