]> git.pld-linux.org Git - packages/vim.git/blame - 7.2.207
- new
[packages/vim.git] / 7.2.207
CommitLineData
ef0610d1
AG
1To: vim-dev@vim.org
2Subject: Patch 7.2.207
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.2.207
11Problem: Using freed memory with ":redrawstatus" when it works recursively.
12Solution: Prevent recursively updating the status line. (partly by Dominique
13 Pelle)
14Files: src/screen.c
15
16
17*** ../vim-7.2.206/src/screen.c 2009-06-16 16:01:34.000000000 +0200
18--- src/screen.c 2009-06-16 17:04:53.000000000 +0200
19***************
20*** 5743,5748 ****
21--- 5743,5755 ----
22 int fillchar;
23 int attr;
24 int this_ru_col;
25+ static int busy = FALSE;
26+
27+ /* It's possible to get here recursively when 'statusline' (indirectly)
28+ * invokes ":redrawstatus". Simply ignore the call then. */
29+ if (busy)
30+ return;
31+ busy = TRUE;
32
33 wp->w_redr_status = FALSE;
34 if (wp->w_status_height == 0)
35***************
36*** 5881,5886 ****
37--- 5888,5894 ----
38 attr);
39 }
40 #endif
41+ busy = FALSE;
42 }
43
44 #ifdef FEAT_STL_OPT
45*** ../vim-7.2.206/src/version.c 2009-06-16 16:57:53.000000000 +0200
46--- src/version.c 2009-06-16 17:21:56.000000000 +0200
47***************
48*** 678,679 ****
49--- 678,681 ----
50 { /* Add new patch number below this line */
51+ /**/
52+ 207,
53 /**/
54
55--
56In many of the more relaxed civilizations on the Outer Eastern Rim of the
57Galaxy, "The Hitchhiker's Guide to the Galaxy" has already supplanted the
58great "Encyclopedia Galactica" as the standard repository of all knowledge
59and wisdom, for though it has many omissions and contains much that is
60apocryphal, or at least wildly inaccurate, it scores over the older, more
61pedestrian work in two important respects.
62First, it is slightly cheaper; and second, it has the words "DON'T PANIC"
63inscribed in large friendly letters on its cover.
64 -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
65
66 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
67/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
68\\\ download, build and distribute -- http://www.A-A-P.org ///
69 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
This page took 0.03387 seconds and 4 git commands to generate.