aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/diff.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-10-06 18:52:38 -0700
committerGitHub <noreply@github.com>2019-10-06 18:52:38 -0700
commit23ba875b821c454e81093de83f7fd6555a4dd0c4 (patch)
tree3707321b4560e6d8b7d85d19a624ffdeaa374108 /src/nvim/diff.c
parent8f20c50caa7fa008f5e6257ef0fc43620e3baeb1 (diff)
parent97cdfdcde24c6a804f879b6464512008db4b5cef (diff)
downloadrneovim-23ba875b821c454e81093de83f7fd6555a4dd0c4.tar.gz
rneovim-23ba875b821c454e81093de83f7fd6555a4dd0c4.tar.bz2
rneovim-23ba875b821c454e81093de83f7fd6555a4dd0c4.zip
Merge #11170 from janlazo/vim-8.1.2120
vim-patch:8.1.2120
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r--src/nvim/diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c
index db3ef7ac47..31552929dc 100644
--- a/src/nvim/diff.c
+++ b/src/nvim/diff.c
@@ -723,8 +723,8 @@ static int diff_write_buffer(buf_T *buf, diffin_T *din)
char_u cbuf[MB_MAXBYTES + 1];
c = PTR2CHAR(s);
- c = enc_utf8 ? utf_fold(c) : TOLOWER_LOC(c);
- orig_len = MB_PTR2LEN(s);
+ c = utf_fold(c);
+ orig_len = utfc_ptr2len(s);
if (utf_char2bytes(c, cbuf) != orig_len) {
// TODO(Bram): handle byte length difference
memmove(ptr + len, s, orig_len);