1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2014-01-10 15:53:13 +01:00
parent 4ea924e0a5
commit bd2dc34774
3 changed files with 5 additions and 3 deletions

View File

@@ -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);