diff options
author | ZviRackover <zvirack@gmail.com> | 2018-06-30 16:21:37 +0300 |
---|---|---|
committer | ZviRackover <zvirack@gmail.com> | 2018-08-06 20:48:07 +0300 |
commit | 071aab51488e03a0e09a0a60aec6c0abc0277279 (patch) | |
tree | 6323eb69ad229bb7c9c43ee26c4fa566ef6fd6f8 /src/nvim/cursor.c | |
parent | cd3b2e4b6bea9501b3bd7ddf7b4d7ca31f1e6dd5 (diff) | |
download | rneovim-071aab51488e03a0e09a0a60aec6c0abc0277279.tar.gz rneovim-071aab51488e03a0e09a0a60aec6c0abc0277279.tar.bz2 rneovim-071aab51488e03a0e09a0a60aec6c0abc0277279.zip |
Remove some occrrences of enc_utf8 and has_mbyte
Removing uses and related dead code in the locallity of changes of
the two parent commits.
Diffstat (limited to 'src/nvim/cursor.c')
-rw-r--r-- | src/nvim/cursor.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/cursor.c b/src/nvim/cursor.c index a7f2f5a247..0fda941a51 100644 --- a/src/nvim/cursor.c +++ b/src/nvim/cursor.c @@ -476,10 +476,7 @@ bool leftcol_changed(void) int gchar_cursor(void) { - if (has_mbyte) { - return utf_ptr2char(get_cursor_pos_ptr()); - } - return (int)(*get_cursor_pos_ptr()); + return utf_ptr2char(get_cursor_pos_ptr()); } /* |