1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Complicated 'statusline' causes a crash. (Christian Brabandt)
12 Solution: Check that the number of items is not too big.
16 *** ../vim-7.3.120/src/buffer.c 2011-02-01 21:54:56.000000000 +0100
17 --- src/buffer.c 2011-02-15 14:00:51.000000000 +0100
21 prevchar_isitem = FALSE;
22 for (s = usefmt; *s; )
24 + if (curitem == STL_MAX_ITEM)
26 + /* There are too many items. Add the error code to the statusline
27 + * to give the user a hint about what went wrong. */
28 + if (p + 6 < out + outlen)
30 + mch_memmove(p, " E541", (size_t)5);
36 if (*s != NUL && *s != '%')
37 prevchar_isflag = prevchar_isitem = FALSE;
39 *** ../vim-7.3.120/src/version.c 2011-02-15 11:56:56.000000000 +0100
40 --- src/version.c 2011-02-15 14:23:39.000000000 +0100
44 { /* Add new patch number below this line */
50 hundred-and-one symptoms of being an internet addict:
51 265. Your reason for not staying in touch with family is that
52 they do not have e-mail addresses.
54 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
55 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
56 \\\ an exciting new programming language -- http://www.Zimbu.org ///
57 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///