diff options
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r-- | src/nvim/diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c index 1cc9399465..4e03f4761c 100644 --- a/src/nvim/diff.c +++ b/src/nvim/diff.c @@ -744,7 +744,7 @@ static int diff_write_buffer(buf_T *buf, diffin_T *din) char_u cbuf[MB_MAXBYTES + 1]; // xdiff doesn't support ignoring case, fold-case the text. - int c = PTR2CHAR(s); + int c = utf_ptr2char(s); c = utf_fold(c); const int orig_len = utfc_ptr2len(s); if (utf_char2bytes(c, cbuf) != orig_len) { |