c384135
To: vim-dev@vim.org
c384135
Subject: Patch 7.0.040
c384135
Fcc: outbox
c384135
From: Bram Moolenaar <Bram@moolenaar.net>
c384135
Mime-Version: 1.0
c384135
Content-Type: text/plain; charset=ISO-8859-1
c384135
Content-Transfer-Encoding: 8bit
c384135
------------
c384135
c384135
Patch 7.0.040
c384135
Problem:    When 'cmdheight' is larger than 1 using inputlist() or selecting
c384135
	    a spell suggestion with the mouse gets the wrong entry.
c384135
Solution:   Start listing the first alternative on the last line of the screen.
c384135
Files:	    src/eval.c, src/spell.c
c384135
c384135
c384135
*** ../vim-7.0.039/src/eval.c	Thu Jul 13 08:30:50 2006
c384135
--- src/eval.c	Mon Jul 10 23:03:13 2006
c384135
***************
c384135
*** 11497,11502 ****
c384135
--- 11497,11503 ----
c384135
      }
c384135
  
c384135
      msg_start();
c384135
+     msg_row = Rows - 1;	/* for when 'cmdheight' > 1 */
c384135
      lines_left = Rows;	/* avoid more prompt */
c384135
      msg_scroll = TRUE;
c384135
      msg_clr_eos();
c384135
*** ../vim-7.0.039/src/spell.c	Sat May 13 14:12:51 2006
c384135
--- src/spell.c	Mon Jul 10 23:03:04 2006
c384135
***************
c384135
*** 10071,10076 ****
c384135
--- 10071,10077 ----
c384135
  
c384135
  	/* List the suggestions. */
c384135
  	msg_start();
c384135
+ 	msg_row = Rows - 1;	/* for when 'cmdheight' > 1 */
c384135
  	lines_left = Rows;	/* avoid more prompt */
c384135
  	vim_snprintf((char *)IObuff, IOSIZE, _("Change \"%.*s\" to:"),
c384135
  						sug.su_badlen, sug.su_badptr);
c384135
*** ../vim-7.0.039/src/version.c	Thu Jul 13 08:30:50 2006
c384135
--- src/version.c	Sun Jul 23 21:51:04 2006
c384135
***************
c384135
*** 668,669 ****
c384135
--- 668,671 ----
c384135
  {   /* Add new patch number below this line */
c384135
+ /**/
c384135
+     40,
c384135
  /**/
c384135
c384135
-- 
c384135
hundred-and-one symptoms of being an internet addict:
c384135
40. You tell the cab driver you live at
c384135
    http://123.elm.street/house/bluetrim.html
c384135
41. You actually try that 123.elm.street address.
c384135
c384135
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
c384135
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
c384135
\\\        download, build and distribute -- http://www.A-A-P.org        ///
c384135
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///