]>
Commit | Line | Data |
---|---|---|
25f687b8 AM |
1 | To: vim-dev@vim.org |
2 | Subject: patch 7.1.119 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.1.119 | |
11 | Problem: Crash when 'cmdheight' set to very large value. (A.Politz) | |
12 | Solution: Limit 'cmdheight' to 'lines' minus one. Store right value of | |
13 | 'cmdheight' when running out of room. | |
14 | Files: src/option.c, src/window.c | |
15 | ||
16 | ||
17 | *** ../vim-7.1.118/src/option.c Thu Sep 6 16:33:47 2007 | |
18 | --- src/option.c Tue Sep 25 12:17:35 2007 | |
19 | *************** | |
20 | *** 7824,7829 **** | |
21 | --- 7824,7831 ---- | |
22 | errmsg = e_positive; | |
23 | p_ch = 1; | |
24 | } | |
25 | + if (p_ch > Rows - min_rows() + 1) | |
26 | + p_ch = Rows - min_rows() + 1; | |
27 | ||
28 | /* Only compute the new window layout when startup has been | |
29 | * completed. Otherwise the frame sizes may be wrong. */ | |
30 | *** ../vim-7.1.118/src/window.c Thu Sep 13 18:25:08 2007 | |
31 | --- src/window.c Tue Sep 25 12:13:56 2007 | |
32 | *************** | |
33 | *** 5523,5528 **** | |
34 | --- 5523,5529 ---- | |
35 | { | |
36 | EMSG(_(e_noroom)); | |
37 | p_ch = old_p_ch; | |
38 | + curtab->tp_ch_used = p_ch; | |
39 | cmdline_row = Rows - p_ch; | |
40 | break; | |
41 | } | |
42 | *** ../vim-7.1.118/src/version.c Tue Sep 25 14:19:35 2007 | |
43 | --- src/version.c Tue Sep 25 14:48:14 2007 | |
44 | *************** | |
45 | *** 668,669 **** | |
46 | --- 668,671 ---- | |
47 | { /* Add new patch number below this line */ | |
48 | + /**/ | |
49 | + 119, | |
50 | /**/ | |
51 | ||
52 | -- | |
53 | Q: Why does /dev/null accept only integers? | |
54 | A: You can't sink a float. | |
55 | ||
56 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
57 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
58 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
59 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |