aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-08-08 01:24:18 +0200
committerGitHub <noreply@github.com>2018-08-08 01:24:18 +0200
commitc06613d2f6c3f3a864c43e03b95d12efb3e0f4a6 (patch)
tree3d052800def8498c4d26887b881f99e40bb38a46 /src/nvim/getchar.c
parent1593ee7cf21f77168531c959fa9e73933b502d2e (diff)
parent5cecd7a93aba83cd477519974fc33fadbdcfdc87 (diff)
downloadrneovim-c06613d2f6c3f3a864c43e03b95d12efb3e0f4a6.tar.gz
rneovim-c06613d2f6c3f3a864c43e03b95d12efb3e0f4a6.tar.bz2
rneovim-c06613d2f6c3f3a864c43e03b95d12efb3e0f4a6.zip
Merge #8665 'Remove mb_ptr2char macro'
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index e20c75cf7b..b57e1f6558 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -701,7 +701,7 @@ static int read_redo(int init, int old_redo)
buf[i] = (char_u)c;
if (i == n - 1) { // last byte of a character
if (n != 1) {
- c = (*mb_ptr2char)(buf);
+ c = utf_ptr2char(buf);
}
break;
}
@@ -1486,7 +1486,7 @@ int vgetc(void)
}
}
no_mapping--;
- c = (*mb_ptr2char)(buf);
+ c = utf_ptr2char(buf);
}
break;