From bd2dc34774c3753b2953a3bffaf35d5793d2575c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 10 Jan 2014 15:53:13 +0100 Subject: =?UTF-8?q?updated=20for=20version=207.4.139=20Problem:=20=20=20?= =?UTF-8?q?=20Crash=20when=20using=20:cd=20in=20autocommand.=20(Fran=C3=A7?= =?UTF-8?q?ois=20Ingelrest)=20Solution:=20=20=20Set=20w=5Flocaldir=20to=20?= =?UTF-8?q?NULL=20after=20freeing=20it.=20(Dominique=20Pelle)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ex_docmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ex_docmd.c') 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); -- cgit v1.2.3