]>
Commit | Line | Data |
---|---|---|
468bf62c AM |
1 | To: vim-dev@vim.org |
2 | Subject: patch 7.0.220 | |
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.0.220 | |
11 | Problem: Crash when using winnr('#') in a new tab page. (Andy Wokula) | |
12 | Solution: Check for not finding the window. | |
13 | Files: src/eval.c | |
14 | ||
15 | ||
16 | *** ../vim-7.0.219/src/eval.c Tue Feb 20 03:18:20 2007 | |
17 | --- src/eval.c Sun Mar 25 17:43:53 2007 | |
18 | *************** | |
19 | *** 15769,15775 **** | |
20 | --- 15769,15783 ---- | |
21 | if (nr > 0) | |
22 | for (wp = (tp == curtab) ? firstwin : tp->tp_firstwin; | |
23 | wp != twin; wp = wp->w_next) | |
24 | + { | |
25 | + if (wp == NULL) | |
26 | + { | |
27 | + /* didn't find it in this tabpage */ | |
28 | + nr = 0; | |
29 | + break; | |
30 | + } | |
31 | ++nr; | |
32 | + } | |
33 | return nr; | |
34 | } | |
35 | #endif | |
36 | *** ../vim-7.0.219/src/version.c Sun Mar 18 21:52:09 2007 | |
37 | --- src/version.c Sun Mar 25 17:48:20 2007 | |
38 | *************** | |
39 | *** 668,669 **** | |
40 | --- 668,671 ---- | |
41 | { /* Add new patch number below this line */ | |
42 | + /**/ | |
43 | + 220, | |
44 | /**/ | |
45 | ||
46 | -- | |
47 | Men may not be seen publicly in any kind of strapless gown. | |
48 | [real standing law in Florida, United States of America] | |
49 | ||
50 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
51 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
52 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
53 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |