aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/cursor.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/cursor.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/cursor.c')
-rw-r--r--src/nvim/cursor.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/cursor.c b/src/nvim/cursor.c
index 177f167d74..0fda941a51 100644
--- a/src/nvim/cursor.c
+++ b/src/nvim/cursor.c
@@ -476,9 +476,7 @@ bool leftcol_changed(void)
int gchar_cursor(void)
{
- if (has_mbyte)
- return (*mb_ptr2char)(get_cursor_pos_ptr());
- return (int)*get_cursor_pos_ptr();
+ return utf_ptr2char(get_cursor_pos_ptr());
}
/*
@@ -507,4 +505,3 @@ char_u *get_cursor_pos_ptr(void)
return ml_get_buf(curbuf, curwin->w_cursor.lnum, false) +
curwin->w_cursor.col;
}
-