Karsten Hopp ea4650
To: vim-dev@vim.org
Karsten Hopp ea4650
Subject: Patch 7.2.024
Karsten Hopp ea4650
Fcc: outbox
Karsten Hopp ea4650
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp ea4650
Mime-Version: 1.0
Karsten Hopp ea4650
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp ea4650
Content-Transfer-Encoding: 8bit
Karsten Hopp ea4650
------------
Karsten Hopp ea4650
Karsten Hopp ea4650
Patch 7.2.024
Karsten Hopp ea4650
Problem:    It's possible to set 'history' to a negative value and that causes
Karsten Hopp ea4650
	    an out-of-memory error.
Karsten Hopp ea4650
Solution:   Check that 'history' has a positive value. (Doug Kearns)
Karsten Hopp ea4650
Files:	    src/option.c
Karsten Hopp ea4650
Karsten Hopp ea4650
Karsten Hopp ea4650
*** ../vim-7.2.023/src/option.c	Thu Jul 24 18:45:15 2008
Karsten Hopp ea4650
--- src/option.c	Fri Sep 26 22:20:20 2008
Karsten Hopp ea4650
***************
Karsten Hopp ea4650
*** 7974,7979 ****
Karsten Hopp ea4650
--- 7974,7984 ----
Karsten Hopp ea4650
  	else /* curwin->w_p_scr > curwin->w_height */
Karsten Hopp ea4650
  	    curwin->w_p_scr = curwin->w_height;
Karsten Hopp ea4650
      }
Karsten Hopp ea4650
+     if (p_hi < 0)
Karsten Hopp ea4650
+     {
Karsten Hopp ea4650
+ 	errmsg = e_positive;
Karsten Hopp ea4650
+ 	p_hi = 0;
Karsten Hopp ea4650
+     }
Karsten Hopp ea4650
      if (p_report < 0)
Karsten Hopp ea4650
      {
Karsten Hopp ea4650
  	errmsg = e_positive;
Karsten Hopp ea4650
*** ../vim-7.2.023/src/version.c	Wed Oct  1 21:09:02 2008
Karsten Hopp ea4650
--- src/version.c	Thu Oct  2 22:47:22 2008
Karsten Hopp ea4650
***************
Karsten Hopp ea4650
*** 678,679 ****
Karsten Hopp ea4650
--- 678,681 ----
Karsten Hopp ea4650
  {   /* Add new patch number below this line */
Karsten Hopp ea4650
+ /**/
Karsten Hopp ea4650
+     24,
Karsten Hopp ea4650
  /**/
Karsten Hopp ea4650
Karsten Hopp ea4650
-- 
Karsten Hopp ea4650
hundred-and-one symptoms of being an internet addict:
Karsten Hopp ea4650
127. You bring your laptop and cellular phone to church.
Karsten Hopp ea4650
Karsten Hopp ea4650
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp ea4650
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp ea4650
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp ea4650
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///