Skip to content

Commit

Permalink
fix(gcc): compile warning in nvim_buf_set_extmark
Browse files Browse the repository at this point in the history
  • Loading branch information
seandewar committed May 5, 2021
1 parent 4ad30f7 commit b274b98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nvim/api/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1691,7 +1691,8 @@ Integer nvim_buf_set_extmark(Buffer buffer, Integer ns_id,
if (decor.virt_text_pos == kVTRightAlign) {
decor.col = 0;
for (size_t i = 0; i < kv_size(decor.virt_text); i++) {
decor.col += mb_string2cells((char_u *)kv_A(decor.virt_text, i).text);
decor.col
+= (int)mb_string2cells((char_u *)kv_A(decor.virt_text, i).text);
}
}

Expand Down

0 comments on commit b274b98

Please sign in to comment.