1
0
forked from aniani/vim

updated for version 7.0-024

This commit is contained in:
Bram Moolenaar
2006-06-22 15:35:14 +00:00
parent be46a1eba6
commit 5fcc3fead5
2 changed files with 9 additions and 0 deletions

View File

@@ -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))