mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
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.
This commit is contained in:
12
src/beval.c
12
src/beval.c
@@ -138,17 +138,9 @@ get_beval_info(
|
|||||||
char_u **textp,
|
char_u **textp,
|
||||||
int *colp)
|
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
|
# ifdef FEAT_GUI
|
||||||
if (gui.in_use)
|
if (gui.in_use)
|
||||||
{
|
{
|
||||||
|
@@ -777,6 +777,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1650,
|
||||||
/**/
|
/**/
|
||||||
1649,
|
1649,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user