diff options
Diffstat (limited to 'src/nvim/cursor.c')
-rw-r--r-- | src/nvim/cursor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/cursor.c b/src/nvim/cursor.c index abe951dcf5..a7f2f5a247 100644 --- a/src/nvim/cursor.c +++ b/src/nvim/cursor.c @@ -476,9 +476,10 @@ bool leftcol_changed(void) int gchar_cursor(void) { - if (has_mbyte) + if (has_mbyte) { return utf_ptr2char(get_cursor_pos_ptr()); - return (int)*get_cursor_pos_ptr(); + } + return (int)(*get_cursor_pos_ptr()); } /* @@ -507,4 +508,3 @@ char_u *get_cursor_pos_ptr(void) return ml_get_buf(curbuf, curwin->w_cursor.lnum, false) + curwin->w_cursor.col; } - |