mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +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;
| ~~~~^~~
(cherry picked from commit e9280a68f7
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
b2a43b5287
commit
b91278c4fa
@@ -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) {
|
||||
continue;
|
||||
}
|
||||
int col;
|
||||
int col = 0;
|
||||
if (item->decor.ui_watched) {
|
||||
// send mark position to UI
|
||||
col = item->win_col;
|
||||
|
Reference in New Issue
Block a user