diff options
author | ZviRackover <zvirack@gmail.com> | 2018-06-30 13:29:09 +0300 |
---|---|---|
committer | ZviRackover <zvirack@gmail.com> | 2018-08-06 20:48:07 +0300 |
commit | cd3b2e4b6bea9501b3bd7ddf7b4d7ca31f1e6dd5 (patch) | |
tree | 339bac4edb54e8614e5974c4b086ebb3293a1bfc /src/nvim/buffer.c | |
parent | 10b6afd652a896144d87fb0db4389001293e7973 (diff) | |
download | rneovim-cd3b2e4b6bea9501b3bd7ddf7b4d7ca31f1e6dd5.tar.gz rneovim-cd3b2e4b6bea9501b3bd7ddf7b4d7ca31f1e6dd5.tar.bz2 rneovim-cd3b2e4b6bea9501b3bd7ddf7b4d7ca31f1e6dd5.zip |
lint: clean-up after parent commit
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 67e4b00705..71e04ec0fb 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -3220,10 +3220,11 @@ int build_stl_str_hl( // Get the byte value now, in case we need it below. This is more // efficient than making a copy of the line. int byteval; - if (wp->w_cursor.col > (colnr_T)STRLEN(line_ptr)) + if (wp->w_cursor.col > (colnr_T)STRLEN(line_ptr)) { byteval = 0; - else + } else { byteval = utf_ptr2char(line_ptr + wp->w_cursor.col); + } int groupdepth = 0; |