mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix warning: garbage/uninitialized value
According to clang scan-build, `fromcol` could be uninitialized at line 2645. Found by clang scan-build 5.0
This commit is contained in:
parent
863dbbb3d4
commit
e0f6f46c1b
@ -2175,11 +2175,11 @@ win_line (
|
|||||||
|
|
||||||
int n_skip = 0; /* nr of chars to skip for 'nowrap' */
|
int n_skip = 0; /* nr of chars to skip for 'nowrap' */
|
||||||
|
|
||||||
int fromcol, tocol; /* start/end of inverting */
|
int fromcol = 0, tocol = 0; // start/end of inverting
|
||||||
int fromcol_prev = -2; /* start of inverting after cursor */
|
int fromcol_prev = -2; // start of inverting after cursor
|
||||||
int noinvcur = FALSE; /* don't invert the cursor */
|
int noinvcur = false; // don't invert the cursor
|
||||||
pos_T *top, *bot;
|
pos_T *top, *bot;
|
||||||
int lnum_in_visual_area = FALSE;
|
int lnum_in_visual_area = false;
|
||||||
pos_T pos;
|
pos_T pos;
|
||||||
long v;
|
long v;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user