summaryrefslogtreecommitdiff
path: root/src/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/macros.h b/src/macros.h
index c4c9a14da..a8bc2b852 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -276,3 +276,9 @@
# define MB_CHARLEN(p) STRLEN(p)
# define PTR2CHAR(p) ((int)*(p))
#endif
+
+#ifdef FEAT_AUTOCHDIR
+# define DO_AUTOCHDIR if (p_acd) do_autochdir();
+#else
+# define DO_AUTOCHDIR
+#endif