mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #14492 from seandewar/gcc-conv-warn
fix(gcc): compile warning in nvim_buf_set_extmark
This commit is contained in:
commit
1c2e504d5c
@ -1691,7 +1691,8 @@ Integer nvim_buf_set_extmark(Buffer buffer, Integer ns_id,
|
|||||||
if (decor.virt_text_pos == kVTRightAlign) {
|
if (decor.virt_text_pos == kVTRightAlign) {
|
||||||
decor.col = 0;
|
decor.col = 0;
|
||||||
for (size_t i = 0; i < kv_size(decor.virt_text); i++) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user