diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-09 19:34:54 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-09 19:34:54 +0200 |
commit | 59de417b904bbd204e313f015839317b577bd124 (patch) | |
tree | 4ebd73ce6e4ccd65b8a595f388c4535d81387319 /src/diff.c | |
parent | dcf59c37d0e1517439c4c0c4a6a5ca09c90157ad (diff) | |
download | vim-git-59de417b904bbd204e313f015839317b577bd124.tar.gz |
patch 8.2.0938: NFA regexp uses tolower ()to compare ignore-casev8.2.0938
Problem: NFA regexp uses tolower() to compare ignore-case. (Thayne McCombs)
Solution: Use utf_fold() when possible. (ref. neovim #12456)
Diffstat (limited to 'src/diff.c')
-rw-r--r-- | src/diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c index 1b0ad4778..bb95d5ed6 100644 --- a/src/diff.c +++ b/src/diff.c @@ -747,7 +747,7 @@ diff_write_buffer(buf_T *buf, diffin_T *din) // 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 |