If Vim is built with the 'autochdir' feature defined, it is not reported as
such by the ":version" command and has('autochdir') returns zero.
The following diffs show my proposed patches:
$ git diff evalfunc.c
diff --git a/src/evalfunc.c b/src/evalfunc.c
index a9f6c5b8a..ae849be2f 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -6045,6 +6045,9 @@ f_has(typval_T *argvars, typval_T *rettv)
"arabic",
#endif
"autocmd",
+#ifdef FEAT_AUTOCHDIR
+ "autochdir",
+#endif
#ifdef FEAT_AUTOSERVERNAME
"autoservername",
#endif
$
$ git diff version.c
diff --git a/src/version.c b/src/version.c
index 830de26fc..abc7bf8df 100644
--- a/src/version.c
+++ b/src/version.c
@@ -101,6 +101,11 @@ static char *(features[]) =
"-arabic",
#endif
"+autocmd",
+#ifdef FEAT_AUTOCHDIR
+ "+autochdir",
+#else
+ "-autochdir",
+#endif
#ifdef FEAT_AUTOSERVERNAME
"+autoservername",
#else
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.