changeset 17302:e0d727872758 v8.1.1650

patch 8.1.1650: warning for using uninitialized variable commit https://github.com/vim/vim/commit/ee9e604124682b0cd89e4f987a2f6f3fe4160920 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 8 20:08:44 2019 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Mon, 08 Jul 2019 20:15:05 +0200
parents 59392e352add
children 40f564b561b7
files src/beval.c src/version.c
diffstat 2 files changed, 10 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/src/beval.c
+++ b/src/beval.c
@@ -131,24 +131,16 @@ find_word_under_cursor(
  */
     int
 get_beval_info(
-    BalloonEval	*beval,
-    int		getword,
-    win_T	**winp,
-    linenr_T	*lnump,
-    char_u	**textp,
-    int		*colp)
+	BalloonEval	*beval,
+	int		getword,
+	win_T		**winp,
+	linenr_T	*lnump,
+	char_u		**textp,
+	int		*colp)
 {
-    int		row, col;
+    int		row = mouse_row;
+    int		col = mouse_col;
 
-# ifdef FEAT_BEVAL_TERM
-#  ifdef FEAT_GUI
-    if (!gui.in_use)
-#  endif
-    {
-	row = mouse_row;
-	col = mouse_col;
-    }
-# endif
 # ifdef FEAT_GUI
     if (gui.in_use)
     {
--- a/src/version.c
+++ b/src/version.c
@@ -778,6 +778,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1650,
+/**/
     1649,
 /**/
     1648,