summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/option.c b/src/option.c
index c599d0245..1f47c60b9 100644
--- a/src/option.c
+++ b/src/option.c
@@ -7326,9 +7326,8 @@ set_bool_option(opt_idx, varp, value, opt_flags)
#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