aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/cursor.c
diff options
context:
space:
mode:
authorZviRackover <zvirack@gmail.com>2018-06-30 13:29:09 +0300
committerZviRackover <zvirack@gmail.com>2018-08-06 20:48:07 +0300
commitcd3b2e4b6bea9501b3bd7ddf7b4d7ca31f1e6dd5 (patch)
tree339bac4edb54e8614e5974c4b086ebb3293a1bfc /src/nvim/cursor.c
parent10b6afd652a896144d87fb0db4389001293e7973 (diff)
downloadrneovim-cd3b2e4b6bea9501b3bd7ddf7b4d7ca31f1e6dd5.tar.gz
rneovim-cd3b2e4b6bea9501b3bd7ddf7b4d7ca31f1e6dd5.tar.bz2
rneovim-cd3b2e4b6bea9501b3bd7ddf7b4d7ca31f1e6dd5.zip
lint: clean-up after parent commit
Diffstat (limited to 'src/nvim/cursor.c')
-rw-r--r--src/nvim/cursor.c6
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;
}
-