diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-08-08 01:24:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-08 01:24:18 +0200 |
commit | c06613d2f6c3f3a864c43e03b95d12efb3e0f4a6 (patch) | |
tree | 3d052800def8498c4d26887b881f99e40bb38a46 /src/nvim/charset.c | |
parent | 1593ee7cf21f77168531c959fa9e73933b502d2e (diff) | |
parent | 5cecd7a93aba83cd477519974fc33fadbdcfdc87 (diff) | |
download | rneovim-c06613d2f6c3f3a864c43e03b95d12efb3e0f4a6.tar.gz rneovim-c06613d2f6c3f3a864c43e03b95d12efb3e0f4a6.tar.bz2 rneovim-c06613d2f6c3f3a864c43e03b95d12efb3e0f4a6.zip |
Merge #8665 'Remove mb_ptr2char macro'
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r-- | src/nvim/charset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c index 231bff26e8..f1b3be6b46 100644 --- a/src/nvim/charset.c +++ b/src/nvim/charset.c @@ -1379,7 +1379,7 @@ void getvvcol(win_T *wp, pos_T *pos, colnr_T *start, colnr_T *cursor, ptr = ml_get_buf(wp->w_buffer, pos->lnum, false); if (pos->col < (colnr_T)STRLEN(ptr)) { - int c = (*mb_ptr2char)(ptr + pos->col); + int c = utf_ptr2char(ptr + pos->col); if ((c != TAB) && vim_isprintc(c)) { endadd = (colnr_T)(char2cells(c) - 1); if (coladd > endadd) { |