Patch 8.1.1650
Problem:    Warning for using uninitialized variable. (Tony Mechelynck)
Solution:   Simplify the code by always using the mouse coordinates.
Files:      src/beval.c


*** ../vim-8.1.1649/src/beval.c 2019-07-07 20:30:43.518359624 +0200
--- src/beval.c 2019-07-08 20:06:21.880727374 +0200
***************
*** 131,154 ****
   */
      int
  get_beval_info(
!     BalloonEval       *beval,
!     int               getword,
!     win_T     **winp,
!     linenr_T  *lnump,
!     char_u    **textp,
!     int               *colp)
  {
!     int               row, 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)
      {
--- 131,146 ----
   */
      int
  get_beval_info(
!       BalloonEval     *beval,
!       int             getword,
!       win_T           **winp,
!       linenr_T        *lnump,
!       char_u          **textp,
!       int             *colp)
  {
!     int               row = mouse_row;
!     int               col = mouse_col;
  
  # ifdef FEAT_GUI
      if (gui.in_use)
      {
*** ../vim-8.1.1649/src/version.c       2019-07-07 20:43:28.641704359 +0200
--- src/version.c       2019-07-08 20:07:33.344428221 +0200
***************
*** 779,780 ****
--- 779,782 ----
  {   /* Add new patch number below this line */
+ /**/
+     1650,
  /**/

-- 
Some say the world will end in fire; some say in segfaults.
I say it will end in a curly bracket.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201907081809.x68I9V8e030101%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui