summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-04-26 15:06:45 +0000
committerBram Moolenaar <Bram@vim.org>2007-04-26 15:06:45 +0000
commitd267b9c167bb89a3dd3a742081bcccf47e586b54 (patch)
treed304a15923888b7dac644633849b517a4902da51 /src
parent4076b79afd6f85f124cdc5e57241a86b52772332 (diff)
updated for version 7.0-230v7.0.230
Diffstat (limited to 'src')
-rw-r--r--src/eval.c14
-rw-r--r--src/version.c2
2 files changed, 16 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c
index d66fe57f40..7a5ca1d600 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -541,6 +541,7 @@ static void f_glob __ARGS((typval_T *argvars, typval_T *rettv));
static void f_globpath __ARGS((typval_T *argvars, typval_T *rettv));
static void f_has __ARGS((typval_T *argvars, typval_T *rettv));
static void f_has_key __ARGS((typval_T *argvars, typval_T *rettv));
+static void f_haslocaldir __ARGS((typval_T *argvars, typval_T *rettv));
static void f_hasmapto __ARGS((typval_T *argvars, typval_T *rettv));
static void f_histadd __ARGS((typval_T *argvars, typval_T *rettv));
static void f_histdel __ARGS((typval_T *argvars, typval_T *rettv));
@@ -7110,6 +7111,7 @@ static struct fst
{"globpath", 2, 2, f_globpath},
{"has", 1, 1, f_has},
{"has_key", 2, 2, f_has_key},
+ {"haslocaldir", 0, 0, f_haslocaldir},
{"hasmapto", 1, 3, f_hasmapto},
{"highlightID", 1, 1, f_hlID}, /* obsolete */
{"highlight_exists",1, 1, f_hlexists}, /* obsolete */
@@ -11134,6 +11136,18 @@ f_has_key(argvars, rettv)
}
/*
+ * "haslocaldir()" function
+ */
+/*ARGSUSED*/
+ static void
+f_haslocaldir(argvars, rettv)
+ typval_T *argvars;
+ typval_T *rettv;
+{
+ rettv->vval.v_number = (curwin->w_localdir != NULL);
+}
+
+/*
* "hasmapto()" function
*/
static void
diff --git a/src/version.c b/src/version.c
index a825b38080..672a409e06 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 230,
+/**/
229,
/**/
228,