Karsten Hopp de97d7
To: vim-dev@vim.org
Karsten Hopp de97d7
Subject: patch 7.1.119
Karsten Hopp de97d7
Fcc: outbox
Karsten Hopp de97d7
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp de97d7
Mime-Version: 1.0
Karsten Hopp de97d7
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp de97d7
Content-Transfer-Encoding: 8bit
Karsten Hopp de97d7
------------
Karsten Hopp de97d7
Karsten Hopp de97d7
Patch 7.1.119
Karsten Hopp de97d7
Problem:    Crash when 'cmdheight' set to very large value. (A.Politz)
Karsten Hopp de97d7
Solution:   Limit 'cmdheight' to 'lines' minus one.  Store right value of
Karsten Hopp de97d7
	    'cmdheight' when running out of room.
Karsten Hopp de97d7
Files:	    src/option.c, src/window.c
Karsten Hopp de97d7
Karsten Hopp de97d7
Karsten Hopp de97d7
*** ../vim-7.1.118/src/option.c	Thu Sep  6 16:33:47 2007
Karsten Hopp de97d7
--- src/option.c	Tue Sep 25 12:17:35 2007
Karsten Hopp de97d7
***************
Karsten Hopp de97d7
*** 7824,7829 ****
Karsten Hopp de97d7
--- 7824,7831 ----
Karsten Hopp de97d7
  	    errmsg = e_positive;
Karsten Hopp de97d7
  	    p_ch = 1;
Karsten Hopp de97d7
  	}
Karsten Hopp de97d7
+ 	if (p_ch > Rows - min_rows() + 1)
Karsten Hopp de97d7
+ 	    p_ch = Rows - min_rows() + 1;
Karsten Hopp de97d7
  
Karsten Hopp de97d7
  	/* Only compute the new window layout when startup has been
Karsten Hopp de97d7
  	 * completed. Otherwise the frame sizes may be wrong. */
Karsten Hopp de97d7
*** ../vim-7.1.118/src/window.c	Thu Sep 13 18:25:08 2007
Karsten Hopp de97d7
--- src/window.c	Tue Sep 25 12:13:56 2007
Karsten Hopp de97d7
***************
Karsten Hopp de97d7
*** 5523,5528 ****
Karsten Hopp de97d7
--- 5523,5529 ----
Karsten Hopp de97d7
  		{
Karsten Hopp de97d7
  		    EMSG(_(e_noroom));
Karsten Hopp de97d7
  		    p_ch = old_p_ch;
Karsten Hopp de97d7
+ 		    curtab->tp_ch_used = p_ch;
Karsten Hopp de97d7
  		    cmdline_row = Rows - p_ch;
Karsten Hopp de97d7
  		    break;
Karsten Hopp de97d7
  		}
Karsten Hopp de97d7
*** ../vim-7.1.118/src/version.c	Tue Sep 25 14:19:35 2007
Karsten Hopp de97d7
--- src/version.c	Tue Sep 25 14:48:14 2007
Karsten Hopp de97d7
***************
Karsten Hopp de97d7
*** 668,669 ****
Karsten Hopp de97d7
--- 668,671 ----
Karsten Hopp de97d7
  {   /* Add new patch number below this line */
Karsten Hopp de97d7
+ /**/
Karsten Hopp de97d7
+     119,
Karsten Hopp de97d7
  /**/
Karsten Hopp de97d7
Karsten Hopp de97d7
-- 
Karsten Hopp de97d7
Q: Why does /dev/null accept only integers?
Karsten Hopp de97d7
A: You can't sink a float.
Karsten Hopp de97d7
Karsten Hopp de97d7
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp de97d7
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp de97d7
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp de97d7
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///