99b86a7
To: vim-dev@vim.org
99b86a7
Subject: Patch 7.1.191
99b86a7
Fcc: outbox
99b86a7
From: Bram Moolenaar <Bram@moolenaar.net>
99b86a7
Mime-Version: 1.0
99b86a7
Content-Type: text/plain; charset=ISO-8859-1
99b86a7
Content-Transfer-Encoding: 8bit
99b86a7
------------
99b86a7
99b86a7
Patch 7.1.191
99b86a7
Problem:    Win32 GUI: after patch 7.1.168 there is still a problem when
99b86a7
	    clicking in a scrollbar. (Juergen Jottkaerr)
99b86a7
Solution:   Don't check the input buffer when dragging the scrollbar.
99b86a7
Files:	    src/gui.c
99b86a7
99b86a7
99b86a7
*** ../vim-7.1.190/src/gui.c	Tue Nov  6 22:26:39 2007
99b86a7
--- src/gui.c	Thu Jan  3 13:16:29 2008
99b86a7
***************
99b86a7
*** 3734,3741 ****
99b86a7
      sb->value = value;
99b86a7
  
99b86a7
  #ifdef USE_ON_FLY_SCROLL
99b86a7
!     /* When not allowed to do the scrolling right now, return. */
99b86a7
!     if (dont_scroll || input_available())
99b86a7
  	return;
99b86a7
  #endif
99b86a7
  #ifdef FEAT_INS_EXPAND
99b86a7
--- 3734,3743 ----
99b86a7
      sb->value = value;
99b86a7
  
99b86a7
  #ifdef USE_ON_FLY_SCROLL
99b86a7
!     /* When not allowed to do the scrolling right now, return.
99b86a7
!      * This also checked input_available(), but that causes the first click in
99b86a7
!      * a scrollbar to be ignored when Vim doesn't have focus. */
99b86a7
!     if (dont_scroll)
99b86a7
  	return;
99b86a7
  #endif
99b86a7
  #ifdef FEAT_INS_EXPAND
99b86a7
*** ../vim-7.1.190/src/version.c	Thu Jan  3 13:19:50 2008
99b86a7
--- src/version.c	Thu Jan  3 16:13:23 2008
99b86a7
***************
99b86a7
*** 668,669 ****
99b86a7
--- 668,671 ----
99b86a7
  {   /* Add new patch number below this line */
99b86a7
+ /**/
99b86a7
+     191,
99b86a7
  /**/
99b86a7
99b86a7
-- 
99b86a7
GUARD #1:  What -- a swallow carrying a coconut?
99b86a7
ARTHUR:    It could grip it by the husk!
99b86a7
GUARD #1:  It's not a question of where he grips it!  It's a simple question
99b86a7
           of weight ratios!  A five ounce bird could not carry a 1 pound
99b86a7
           coconut.
99b86a7
                                  The Quest for the Holy Grail (Monty Python)
99b86a7
99b86a7
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
99b86a7
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
99b86a7
\\\        download, build and distribute -- http://www.A-A-P.org        ///
99b86a7
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///