| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.139 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.4.139 |
| Problem: Crash when using :cd in autocommand. (François Ingelrest) |
| Solution: Set w_localdir to NULL after freeing it. (Dominique Pelle) |
| Files: src/ex_docmd.c, src/window.c |
| |
| |
| |
| |
| |
| *** 8228,8233 **** |
| --- 8228,8234 ---- |
| int local; |
| { |
| vim_free(curwin->w_localdir); |
| + curwin->w_localdir = NULL; |
| if (local) |
| { |
| /* If still in global directory, need to remember current |
| |
| *** 8244,8250 **** |
| * name. */ |
| vim_free(globaldir); |
| globaldir = NULL; |
| - curwin->w_localdir = NULL; |
| } |
| |
| shorten_fnames(TRUE); |
| --- 8245,8250 ---- |
| |
| |
| |
| *** 1216,1223 **** |
| else |
| copy_loclist(oldp, newp); |
| #endif |
| ! if (oldp->w_localdir != NULL) |
| ! newp->w_localdir = vim_strsave(oldp->w_localdir); |
| |
| /* copy tagstack and folds */ |
| for (i = 0; i < oldp->w_tagstacklen; i++) |
| --- 1216,1223 ---- |
| else |
| copy_loclist(oldp, newp); |
| #endif |
| ! newp->w_localdir = (oldp->w_localdir == NULL) |
| ! ? NULL : vim_strsave(oldp->w_localdir); |
| |
| /* copy tagstack and folds */ |
| for (i = 0; i < oldp->w_tagstacklen; i++) |
| |
| |
| |
| *** 740,741 **** |
| --- 740,743 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 139, |
| /**/ |
| |
| -- |
| hundred-and-one symptoms of being an internet addict: |
| 132. You come back and check this list every half-hour. |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |