diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-01-10 15:53:13 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-01-10 15:53:13 +0100 |
commit | bd2dc34774c3753b2953a3bffaf35d5793d2575c (patch) | |
tree | af3afe045074e0d5122566a7f61a1d7e1956317d /src/ex_docmd.c | |
parent | 4ea924e0a567c5026a25fba2b02dd6eaf9efcb89 (diff) | |
download | vim-bd2dc34774c3753b2953a3bffaf35d5793d2575c.zip |
updated for version 7.4.139
Problem: Crash when using :cd in autocommand. (François Ingelrest)
Solution: Set w_localdir to NULL after freeing it. (Dominique Pelle)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index bf5f81cca..17c5606e6 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -8228,6 +8228,7 @@ post_chdir(local) int local; { vim_free(curwin->w_localdir); + curwin->w_localdir = NULL; if (local) { /* If still in global directory, need to remember current @@ -8244,7 +8245,6 @@ post_chdir(local) * name. */ vim_free(globaldir); globaldir = NULL; - curwin->w_localdir = NULL; } shorten_fnames(TRUE); |