aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/diff.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-11-14 17:43:21 +0100
committerGitHub <noreply@github.com>2021-11-14 17:43:21 +0100
commit2f37ffb71920d0b50f658108736a1465e1e5f280 (patch)
tree1971f1f0f146e16cc8d0f52c97e6b9a0c21f27c6 /src/nvim/diff.c
parentede00b29d175625479060c5c52e256ec6fc445c1 (diff)
parent1450a6f7534147e3d7252594cf06e2a1cc14b79b (diff)
downloadrneovim-2f37ffb71920d0b50f658108736a1465e1e5f280.tar.gz
rneovim-2f37ffb71920d0b50f658108736a1465e1e5f280.tar.bz2
rneovim-2f37ffb71920d0b50f658108736a1465e1e5f280.zip
Merge pull request #16316 from bfredl/macroman
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) {