mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
fix(drawline): initialize variable
src/nvim/drawline.c: In function ‘draw_virt_text’: src/nvim/drawline.c:298:28: warning: ‘col’ may be used uninitialized [-Wmaybe-uninitialized] 298 | state->eol_col = col + 1; | ~~~~^~~
This commit is contained in:
@@ -282,7 +282,7 @@ static void draw_virt_text(win_T *wp, buf_T *buf, int col_off, int *end_col, int
|
|||||||
if (item->win_col < 0) {
|
if (item->win_col < 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
int col;
|
int col = 0;
|
||||||
if (item->decor.ui_watched) {
|
if (item->decor.ui_watched) {
|
||||||
// send mark position to UI
|
// send mark position to UI
|
||||||
col = item->win_col;
|
col = item->win_col;
|
||||||
|
Reference in New Issue
Block a user