updated for version 7.0-087
diff --git a/src/option.c b/src/option.c
index c599d02..1f47c60 100644
--- a/src/option.c
+++ b/src/option.c
@@ -7326,9 +7326,8 @@
 #ifdef FEAT_AUTOCHDIR
     else if ((int *)varp == &p_acd)
     {
-	if (p_acd && curbuf->b_ffname != NULL
-				     && vim_chdirfile(curbuf->b_ffname) == OK)
-	    shorten_fnames(TRUE);
+	/* Change directories when the 'acd' option is set now. */
+	DO_AUTOCHDIR
     }
 #endif