To: [email protected]
Subject: Patch 6.1b.021
Fcc: outbox
From: Bram Moolenaar <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
------------

Patch 6.1b.021
Problem:    when 'mousefocus' is set, CTRL-W CTRL-] sometimes doesn't warp the
           pointer to the new window. (Robert Webb)
Solution:   Don't reset need_mouse_correct when checking the timestamp of a
           file.
Files:      src/fileio.c


*** ../vim61b.020/src/fileio.c  Sat Mar  9 17:55:35 2002
--- src/fileio.c        Sat Mar 16 16:13:00 2002
***************
*** 5041,5046 ****
--- 5041,5049 ----
 #endif
     size_t    orig_size = buf->b_orig_size;
     int               orig_mode = buf->b_orig_mode;
+ #ifdef FEAT_GUI
+     int               save_mouse_correct = need_mouse_correct;
+ #endif

     /* If there is no file name, the buffer is not loaded, or 'buftype' is
      * set: ignore this buffer. */
***************
*** 5277,5285 ****
     }

 #ifdef FEAT_GUI
!     /* reset this in case an autocommand has set it; it would break
      * 'mousefocus' */
!     need_mouse_correct = FALSE;
 #endif

     return retval;
--- 5280,5288 ----
     }

 #ifdef FEAT_GUI
!     /* restore this in case an autocommand has set it; it would break
      * 'mousefocus' */
!     need_mouse_correct = save_mouse_correct;
 #endif

     return retval;
*** ../vim61b.020/src/version.c Sat Mar 16 14:35:36 2002
--- src/version.c       Sat Mar 16 16:15:43 2002
***************
*** 608,609 ****
--- 608,611 ----
 {   /* Add new patch number below this line */
+ /**/
+     21,
 /**/

--
Trees moving back and forth is what makes the wind blow.

///  Bram Moolenaar -- [email protected] -- http://www.moolenaar.net  \\\
///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
\\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
\\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///