updated for version 7.0-024
diff --git a/src/eval.c b/src/eval.c
index 2e4cd12..45872be 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -17759,6 +17759,13 @@
}
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 ad90024..15e38e2 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 24,
+/**/
23,
/**/
22,