neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit e9280a68f7ead83c572bb4c792bc743df9da7149
parent ef7ae66eef4e36e15b5248b926b4b020387d8101
Author: Andreas Schneider <asn@cryptomilk.org>
Date:   Fri, 21 Apr 2023 10:58:46 +0200

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;
      |                        ~~~~^~~

Diffstat:
Msrc/nvim/drawline.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nvim/drawline.c b/src/nvim/drawline.c @@ -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;