diff src/window.c @ 961:c06c658691e2 v7.0.087

updated for version 7.0-087
author vimboss
date Tue, 05 Sep 2006 14:31:54 +0000
parents b2dcb8457067
children cb7043482eca
line wrap: on
line diff
--- a/src/window.c
+++ b/src/window.c
@@ -3954,13 +3954,8 @@ win_enter_ext(wp, undo_sync, curwin_inva
     setmouse();			/* in case jumped to/from help buffer */
 #endif
 
-#ifdef FEAT_AUTOCHDIR
-    /* Change directories when the 'acd' option is set on and after
-     * switching windows. */
-    if (p_acd && curbuf->b_ffname != NULL
-				     && vim_chdirfile(curbuf->b_ffname) == OK)
-	shorten_fnames(TRUE);
-#endif
+    /* Change directories when the 'acd' option is set. */
+    DO_AUTOCHDIR
 }
 
 #endif /* FEAT_WINDOWS */