summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimboss <devnull@localhost>2006-06-22 15:35:14 +0000
committervimboss <devnull@localhost>2006-06-22 15:35:14 +0000
commitcaf9af315ffe7f83105b1248d82670b175d2dff2 (patch)
treefa1aa6dc76417b7d40b33359baa03ef4021310b7
parent68634e58f8bcd9f08be4041a1263fe533b81c8d3 (diff)
downloadvim-caf9af315ffe7f83105b1248d82670b175d2dff2.tar.gz
updated for version 7.0-024v7.0.024v7-0-024
-rw-r--r--src/eval.c7
-rw-r--r--src/version.c2
2 files changed, 9 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c
index 2e4cd12f..45872be3 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -17759,6 +17759,13 @@ set_var(name, tv, copy)
}
else /* add a new variable */
{
+ /* Can't add "v:" variable. */
+ if (ht == &vimvarht)
+ {
+ EMSG2(_(e_illvar), name);
+ return;
+ }
+
/* Make sure the variable name is valid. */
for (p = varname; *p != NUL; ++p)
if (!eval_isnamec1(*p) && (p == varname || !VIM_ISDIGIT(*p))
diff --git a/src/version.c b/src/version.c
index ad900240..15e38e24 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 */
/**/
+ 24,
+/**/
23,
/**/
22,