Karsten Hopp 7fcf5c
To: vim-dev@vim.org
Karsten Hopp 7fcf5c
Subject: Patch 7.0.083
Karsten Hopp 7fcf5c
Fcc: outbox
Karsten Hopp 7fcf5c
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 7fcf5c
Mime-Version: 1.0
Karsten Hopp 7fcf5c
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 7fcf5c
Content-Transfer-Encoding: 8bit
Karsten Hopp 7fcf5c
------------
Karsten Hopp 7fcf5c
Karsten Hopp 7fcf5c
Patch 7.0.083
Karsten Hopp 7fcf5c
Problem:    Clicking with the mouse on an item for inputlist() doesn't work
Karsten Hopp 7fcf5c
	    when 'compatible' is set and/or when 'cmdheight' is more than one.
Karsten Hopp 7fcf5c
	    (Christian J.  Robinson)
Karsten Hopp 7fcf5c
Solution:   Also decrement "lines_left" when 'more' isn't set.  Set
Karsten Hopp 7fcf5c
	    "cmdline_row" to zero to get all mouse events.
Karsten Hopp 7fcf5c
Files:	    src/message.c, src/misc1.c
Karsten Hopp 7fcf5c
Karsten Hopp 7fcf5c
Karsten Hopp 7fcf5c
*** ../vim-7.0.082/src/message.c	Sat May 13 13:12:49 2006
Karsten Hopp 7fcf5c
--- src/message.c	Sun Sep  3 14:32:00 2006
Karsten Hopp 7fcf5c
***************
Karsten Hopp 7fcf5c
*** 1925,1931 ****
Karsten Hopp 7fcf5c
  	     * If screen is completely filled and 'more' is set then wait
Karsten Hopp 7fcf5c
  	     * for a character.
Karsten Hopp 7fcf5c
  	     */
Karsten Hopp 7fcf5c
! 	    if (p_more && --lines_left == 0 && State != HITRETURN
Karsten Hopp 7fcf5c
  					    && !msg_no_more && !exmode_active)
Karsten Hopp 7fcf5c
  	    {
Karsten Hopp 7fcf5c
  #ifdef FEAT_CON_DIALOG
Karsten Hopp 7fcf5c
--- 1925,1932 ----
Karsten Hopp 7fcf5c
  	     * If screen is completely filled and 'more' is set then wait
Karsten Hopp 7fcf5c
  	     * for a character.
Karsten Hopp 7fcf5c
  	     */
Karsten Hopp 7fcf5c
! 	    --lines_left;
Karsten Hopp 7fcf5c
! 	    if (p_more && lines_left == 0 && State != HITRETURN
Karsten Hopp 7fcf5c
  					    && !msg_no_more && !exmode_active)
Karsten Hopp 7fcf5c
  	    {
Karsten Hopp 7fcf5c
  #ifdef FEAT_CON_DIALOG
Karsten Hopp 7fcf5c
*** ../vim-7.0.082/src/misc1.c	Tue Aug 15 22:26:04 2006
Karsten Hopp 7fcf5c
--- src/misc1.c	Sun Sep  3 16:33:48 2006
Karsten Hopp 7fcf5c
***************
Karsten Hopp 7fcf5c
*** 3196,3209 ****
Karsten Hopp 7fcf5c
      else
Karsten Hopp 7fcf5c
  	MSG_PUTS(_("Choice number (<Enter> cancels): "));
Karsten Hopp 7fcf5c
  
Karsten Hopp 7fcf5c
!     /* Set the state such that text can be selected/copied/pasted. */
Karsten Hopp 7fcf5c
      save_cmdline_row = cmdline_row;
Karsten Hopp 7fcf5c
!     cmdline_row = Rows - 1;
Karsten Hopp 7fcf5c
      save_State = State;
Karsten Hopp 7fcf5c
!     if (mouse_used == NULL)
Karsten Hopp 7fcf5c
! 	State = CMDLINE;
Karsten Hopp 7fcf5c
!     else
Karsten Hopp 7fcf5c
! 	State = NORMAL;
Karsten Hopp 7fcf5c
  
Karsten Hopp 7fcf5c
      i = get_number(TRUE, mouse_used);
Karsten Hopp 7fcf5c
      if (KeyTyped)
Karsten Hopp 7fcf5c
--- 3196,3207 ----
Karsten Hopp 7fcf5c
      else
Karsten Hopp 7fcf5c
  	MSG_PUTS(_("Choice number (<Enter> cancels): "));
Karsten Hopp 7fcf5c
  
Karsten Hopp 7fcf5c
!     /* Set the state such that text can be selected/copied/pasted and we still
Karsten Hopp 7fcf5c
!      * get mouse events. */
Karsten Hopp 7fcf5c
      save_cmdline_row = cmdline_row;
Karsten Hopp 7fcf5c
!     cmdline_row = 0;
Karsten Hopp 7fcf5c
      save_State = State;
Karsten Hopp 7fcf5c
!     State = CMDLINE;
Karsten Hopp 7fcf5c
  
Karsten Hopp 7fcf5c
      i = get_number(TRUE, mouse_used);
Karsten Hopp 7fcf5c
      if (KeyTyped)
Karsten Hopp 7fcf5c
*** ../vim-7.0.082/src/version.c	Sun Sep  3 15:38:02 2006
Karsten Hopp 7fcf5c
--- src/version.c	Sun Sep  3 16:36:58 2006
Karsten Hopp 7fcf5c
***************
Karsten Hopp 7fcf5c
*** 668,669 ****
Karsten Hopp 7fcf5c
--- 668,671 ----
Karsten Hopp 7fcf5c
  {   /* Add new patch number below this line */
Karsten Hopp 7fcf5c
+ /**/
Karsten Hopp 7fcf5c
+     83,
Karsten Hopp 7fcf5c
  /**/
Karsten Hopp 7fcf5c
Karsten Hopp 7fcf5c
-- 
Karsten Hopp 7fcf5c
       "To whoever finds this note -
Karsten Hopp 7fcf5c
       I have been imprisoned by my father who wishes me to marry
Karsten Hopp 7fcf5c
       against my will.  Please please please please come and rescue me.
Karsten Hopp 7fcf5c
       I am in the tall tower of Swamp Castle."
Karsten Hopp 7fcf5c
   SIR LAUNCELOT's eyes light up with holy inspiration.
Karsten Hopp 7fcf5c
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 7fcf5c
Karsten Hopp 7fcf5c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 7fcf5c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 7fcf5c
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 7fcf5c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///