summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-07-27 22:08:59 +0200
committerBram Moolenaar <Bram@vim.org>2018-07-27 22:08:59 +0200
commit83ec2a7f5fb481b30a5d556b6aad49a62585bccd (patch)
tree43adf706996b9e464ee320dcf0330d013f1f27c8
parent0a08c63da17dfd93ac2885e3f3f8a083a9b3131c (diff)
downloadvim-git-83ec2a7f5fb481b30a5d556b6aad49a62585bccd.tar.gz
patch 8.1.0214: +autochdir feature not reported by has() or :versionv8.1.0214
Problem: +autochdir feature not reported by has() or :version. Solution: Add the feature in the list.
-rw-r--r--src/evalfunc.c3
-rw-r--r--src/version.c7
2 files changed, 10 insertions, 0 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c
index a9f6c5b8a..23cdeb49e 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
diff --git a/src/version.c b/src/version.c
index 830de26fc..087bc63a1 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
@@ -794,6 +799,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 214,
+/**/
213,
/**/
212,