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