diff options
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r-- | src/nvim/misc1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index 3a87d0a4d1..01f9cb9e32 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -1749,11 +1749,12 @@ del_lines ( int gchar_pos(pos_T *pos) { - char_u *ptr = ml_get_pos(pos); + char_u *ptr = ml_get_pos(pos); - if (has_mbyte) + if (has_mbyte) { return utf_ptr2char(ptr); - return (int)*ptr; + } + return (int)(*ptr); } /* @@ -2840,4 +2841,3 @@ int goto_im(void) { return p_im && stuff_empty() && typebuf_typed(); } - |