aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/diff.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-11-14 13:34:59 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2021-11-14 16:33:12 +0100
commit54ff21a15303e1c7dbfde4895c3444daad6df16a (patch)
treea2b5a7913e2ea8c20d3af1f9af89c2752bf8fdd4 /src/nvim/diff.c
parentede00b29d175625479060c5c52e256ec6fc445c1 (diff)
downloadrneovim-54ff21a15303e1c7dbfde4895c3444daad6df16a.tar.gz
rneovim-54ff21a15303e1c7dbfde4895c3444daad6df16a.tar.bz2
rneovim-54ff21a15303e1c7dbfde4895c3444daad6df16a.zip
refactor(macros): delete multibyte macros which just are aliases
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r--src/nvim/diff.c2
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) {