summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-04-06 20:21:51 +0000
committerBram Moolenaar <Bram@vim.org>2006-04-06 20:21:51 +0000
commit7b89edc62ddb12b74276567087f58fc015c1f8a0 (patch)
tree2cbaed44d36d343304a289ddfd3cd6d196143832 /src/ex_cmds.c
parent8dff818edfb61658b94128111234c3c074c1cadc (diff)
updated for version 7.0c11v7.0c11
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 4e7c169763..bf03721786 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -3485,7 +3485,7 @@ do_ecmd(fnum, ffname, sfname, eap, newlnum, flags)
foldUpdateAll(curwin);
#endif
-#if defined(FEAT_SUN_WORKSHOP) || defined(FEAT_NETBEANS_INTG)
+#ifdef FEAT_AUTOCHDIR
if (p_acd && curbuf->b_ffname != NULL
&& vim_chdirfile(curbuf->b_ffname) == OK)
shorten_fnames(TRUE);
@@ -3656,12 +3656,14 @@ do_ecmd(fnum, ffname, sfname, eap, newlnum, flags)
if (p_im)
need_start_insertmode = TRUE;
-#if defined(FEAT_SUN_WORKSHOP) || defined(FEAT_NETBEANS_INTG)
+#ifdef FEAT_AUTOCHDIR
/* Change directories when the acd option is set on. */
if (p_acd && curbuf->b_ffname != NULL
&& vim_chdirfile(curbuf->b_ffname) == OK)
shorten_fnames(TRUE);
+#endif
+#if defined(FEAT_SUN_WORKSHOP) || defined(FEAT_NETBEANS_INTG)
if (gui.in_use && curbuf->b_ffname != NULL)
{
# ifdef FEAT_SUN_WORKSHOP