| To: vim-dev@vim.org |
| Subject: patch 7.0.220 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.0.220 |
| Problem: Crash when using winnr('#') in a new tab page. (Andy Wokula) |
| Solution: Check for not finding the window. |
| Files: src/eval.c |
| |
| |
| |
| |
| |
| *** 15769,15775 **** |
| --- 15769,15783 ---- |
| if (nr > 0) |
| for (wp = (tp == curtab) ? firstwin : tp->tp_firstwin; |
| wp != twin; wp = wp->w_next) |
| + { |
| + if (wp == NULL) |
| + { |
| + /* didn't find it in this tabpage */ |
| + nr = 0; |
| + break; |
| + } |
| ++nr; |
| + } |
| return nr; |
| } |
| #endif |
| |
| |
| |
| *** 668,669 **** |
| --- 668,671 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 220, |
| /**/ |
| |
| -- |
| Men may not be seen publicly in any kind of strapless gown. |
| [real standing law in Florida, United States of America] |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ download, build and distribute -- http://www.A-A-P.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |