# HG changeset patch # User Bram Moolenaar # Date 1562609705 -7200 # Node ID e0d72787275806303caf7785eb72e0fa4f402f4c # Parent 59392e352adde2ec8749d70fc700d9f1faeee882 patch 8.1.1650: warning for using uninitialized variable commit https://github.com/vim/vim/commit/ee9e604124682b0cd89e4f987a2f6f3fe4160920 Author: Bram Moolenaar 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. diff --git a/src/beval.c b/src/beval.c --- 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) { diff --git a/src/version.c b/src/version.c --- 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,