diff src/eval.c @ 557:862863033fdd v7.0158

updated for version 7.0158
author vimboss
date Wed, 23 Nov 2005 21:25:05 +0000
parents f04e890524be
children f1d46f948241
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -16538,7 +16538,8 @@ set_var(name, tv, copy)
     {
 	/* Make sure the variable name is valid. */
 	for (p = varname; *p != NUL; ++p)
-	    if (!eval_isnamec1(*p) && (p == varname || !VIM_ISDIGIT(*p)))
+	    if (!eval_isnamec1(*p) && (p == varname || !VIM_ISDIGIT(*p))
+						       && *p != AUTOLOAD_CHAR)
 	    {
 		EMSG2(_(e_illvar), varname);
 		return;