Skip to content

Commit ee9e604

Browse files
committed
patch 8.1.1650: warning for using uninitialized variable
Problem: Warning for using uninitialized variable. (Tony Mechelynck) Solution: Simplify the code by always using the mouse coordinates.
1 parent 3e35d05 commit ee9e604

2 files changed

Lines changed: 10 additions & 16 deletions

File tree

src/beval.c

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -131,24 +131,16 @@ find_word_under_cursor(
131131
*/
132132
int
133133
get_beval_info(
134-
BalloonEval *beval,
135-
int getword,
136-
win_T **winp,
137-
linenr_T *lnump,
138-
char_u **textp,
139-
int *colp)
134+
BalloonEval *beval,
135+
int getword,
136+
win_T **winp,
137+
linenr_T *lnump,
138+
char_u **textp,
139+
int *colp)
140140
{
141-
int row, col;
141+
int row = mouse_row;
142+
int col = mouse_col;
142143

143-
# ifdef FEAT_BEVAL_TERM
144-
# ifdef FEAT_GUI
145-
if (!gui.in_use)
146-
# endif
147-
{
148-
row = mouse_row;
149-
col = mouse_col;
150-
}
151-
# endif
152144
# ifdef FEAT_GUI
153145
if (gui.in_use)
154146
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,8 @@ static char *(features[]) =
777777

778778
static int included_patches[] =
779779
{ /* Add new patch number below this line */
780+
/**/
781+
1650,
780782
/**/
781783
1649,
782784
/**/

0 commit comments

Comments
 (0)