To: [email protected]
Subject: Patch 6.1a.041
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.1a.041
Problem:    When pressing the left mouse button in the command line and them
           moving the mouse upwards, nearly all the text is selected.
Solution:   Don't try extending a modeless selection when there isn't one.
Files:      src/ui.c


*** ../vim61a.040/src/ui.c      Thu Feb 28 22:18:54 2002
--- src/ui.c    Sat Mar  9 14:50:11 2002
***************
*** 571,577 ****
     else if (is_click)
       clip_start_selection(mouse_col, mouse_row, repeat);
     else if (is_drag)
!       clip_process_selection(button, mouse_col, mouse_row, repeat);
     else /* release */
       clip_process_selection(MOUSE_RELEASE, mouse_col, mouse_row, FALSE);
 }
--- 571,582 ----
     else if (is_click)
       clip_start_selection(mouse_col, mouse_row, repeat);
     else if (is_drag)
!     {
!       /* Don't try extending a selection if there isn't one.  Happens when
!        * button-down is in the cmdline and them moving mouse upwards. */
!       if (clip_star.state != SELECT_CLEARED)
!           clip_process_selection(button, mouse_col, mouse_row, repeat);
!     }
     else /* release */
       clip_process_selection(MOUSE_RELEASE, mouse_col, mouse_row, FALSE);
 }
*** ../vim61a.040/src/version.c Sat Mar  9 14:32:56 2002
--- src/version.c       Sat Mar  9 14:52:51 2002
***************
*** 608,609 ****
--- 608,611 ----
 {   /* Add new patch number below this line */
+ /**/
+     41,
 /**/

--
hundred-and-one symptoms of being an internet addict:
213. Your kids start referring to you as "that guy in front of the monitor."

///  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  ///