Karsten Hopp c8f6cc
To: vim_dev@googlegroups.com
Karsten Hopp c8f6cc
Subject: Patch 7.3.121
Karsten Hopp c8f6cc
Fcc: outbox
Karsten Hopp c8f6cc
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp c8f6cc
Mime-Version: 1.0
Karsten Hopp c8f6cc
Content-Type: text/plain; charset=UTF-8
Karsten Hopp c8f6cc
Content-Transfer-Encoding: 8bit
Karsten Hopp c8f6cc
------------
Karsten Hopp c8f6cc
Karsten Hopp c8f6cc
Patch 7.3.121
Karsten Hopp c8f6cc
Problem:    Complicated 'statusline' causes a crash. (Christian Brabandt)
Karsten Hopp c8f6cc
Solution:   Check that the number of items is not too big.
Karsten Hopp c8f6cc
Files:	    src/buffer.c
Karsten Hopp c8f6cc
Karsten Hopp c8f6cc
Karsten Hopp c8f6cc
*** ../vim-7.3.120/src/buffer.c	2011-02-01 21:54:56.000000000 +0100
Karsten Hopp c8f6cc
--- src/buffer.c	2011-02-15 14:00:51.000000000 +0100
Karsten Hopp c8f6cc
***************
Karsten Hopp c8f6cc
*** 3460,3465 ****
Karsten Hopp c8f6cc
--- 3461,3478 ----
Karsten Hopp c8f6cc
      prevchar_isitem = FALSE;
Karsten Hopp c8f6cc
      for (s = usefmt; *s; )
Karsten Hopp c8f6cc
      {
Karsten Hopp c8f6cc
+ 	if (curitem == STL_MAX_ITEM)
Karsten Hopp c8f6cc
+ 	{
Karsten Hopp c8f6cc
+ 	    /* There are too many items.  Add the error code to the statusline
Karsten Hopp c8f6cc
+ 	     * to give the user a hint about what went wrong. */
Karsten Hopp c8f6cc
+ 	    if (p + 6 < out + outlen)
Karsten Hopp c8f6cc
+ 	    {
Karsten Hopp c8f6cc
+ 		mch_memmove(p, " E541", (size_t)5);
Karsten Hopp c8f6cc
+ 		p += 5;
Karsten Hopp c8f6cc
+ 	    }
Karsten Hopp c8f6cc
+ 	    break;
Karsten Hopp c8f6cc
+ 	}
Karsten Hopp c8f6cc
+ 
Karsten Hopp c8f6cc
  	if (*s != NUL && *s != '%')
Karsten Hopp c8f6cc
  	    prevchar_isflag = prevchar_isitem = FALSE;
Karsten Hopp c8f6cc
  
Karsten Hopp c8f6cc
*** ../vim-7.3.120/src/version.c	2011-02-15 11:56:56.000000000 +0100
Karsten Hopp c8f6cc
--- src/version.c	2011-02-15 14:23:39.000000000 +0100
Karsten Hopp c8f6cc
***************
Karsten Hopp c8f6cc
*** 716,717 ****
Karsten Hopp c8f6cc
--- 716,719 ----
Karsten Hopp c8f6cc
  {   /* Add new patch number below this line */
Karsten Hopp c8f6cc
+ /**/
Karsten Hopp c8f6cc
+     121,
Karsten Hopp c8f6cc
  /**/
Karsten Hopp c8f6cc
Karsten Hopp c8f6cc
-- 
Karsten Hopp c8f6cc
hundred-and-one symptoms of being an internet addict:
Karsten Hopp c8f6cc
265. Your reason for not staying in touch with family is that
Karsten Hopp c8f6cc
     they do not have e-mail addresses.
Karsten Hopp c8f6cc
Karsten Hopp c8f6cc
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp c8f6cc
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp c8f6cc
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp c8f6cc
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///