Mercurial > vim
diff src/beval.c @ 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 | 3d90ae62deca |
children | 1b0b90f1d95e |
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) {