]> git.pld-linux.org Git - packages/vim.git/blame - 7.3.121
- new: 7.3.260
[packages/vim.git] / 7.3.121
CommitLineData
f2d4cb35
ER
1To: vim_dev@googlegroups.com
2Subject: Patch 7.3.121
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.3.121
11Problem: Complicated 'statusline' causes a crash. (Christian Brabandt)
12Solution: Check that the number of items is not too big.
13Files: src/buffer.c
14
15
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
18***************
19*** 3460,3465 ****
20--- 3461,3478 ----
21 prevchar_isitem = FALSE;
22 for (s = usefmt; *s; )
23 {
24+ if (curitem == STL_MAX_ITEM)
25+ {
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)
29+ {
30+ mch_memmove(p, " E541", (size_t)5);
31+ p += 5;
32+ }
33+ break;
34+ }
35+
36 if (*s != NUL && *s != '%')
37 prevchar_isflag = prevchar_isitem = FALSE;
38
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
41***************
42*** 716,717 ****
43--- 716,719 ----
44 { /* Add new patch number below this line */
45+ /**/
46+ 121,
47 /**/
48
49--
50hundred-and-one symptoms of being an internet addict:
51265. Your reason for not staying in touch with family is that
52 they do not have e-mail addresses.
53
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 ///
This page took 0.037024 seconds and 4 git commands to generate.