home *** CD-ROM | disk | FTP | other *** search
- To: vim-dev@vim.org
- Subject: Patch 6.1.227
- Fcc: outbox
- From: Bram Moolenaar <Bram@moolenaar.net>
- Mime-Version: 1.0
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- ------------
-
- Patch 6.1.227
- Problem: It is possible to use a variable name "asdf:asdf" and ":let j:asdf
- = 5" does not give an error message. (Mikolaj Machowski)
- Solution: Check for a ":" inside the variable name.
- Files: src/eval.c
-
-
- *** ../vim61.226/src/eval.c Mon Oct 14 20:20:44 2002
- --- src/eval.c Mon Oct 14 21:41:28 2002
- ***************
- *** 7163,7168 ****
- --- 7163,7171 ----
- {
- if (name[1] != ':')
- {
- + /* If not "x:name" there must not be any ":" in the name. */
- + if (vim_strchr(name, ':') != NULL)
- + return NULL;
- *varname = name;
- if (current_funccal == NULL)
- return &variables; /* global variable */
- ***************
- *** 7352,7358 ****
- --- 7355,7364 ----
- {
- gap = find_var_ga(name, &varname);
- if (gap == NULL) /* illegal name */
- + {
- + EMSG2(_("E461: Illegal variable name: %s"), name);
- return;
- + }
-
- /* Try to use an empty entry */
- for (i = gap->ga_len; --i >= 0; )
- *** ../vim61.226/src/version.c Mon Oct 14 21:18:12 2002
- --- src/version.c Mon Oct 14 21:39:31 2002
- ***************
- *** 608,609 ****
- --- 608,611 ----
- { /* Add new patch number below this line */
- + /**/
- + 227,
- /**/
-
- --
- hundred-and-one symptoms of being an internet addict:
- 222. You send more than 20 personal e-mails a day.
-
- /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\
- /// Creator of Vim - Vi IMproved -- http://www.vim.org \\\
- \\\ Project leader for A-A-P -- http://www.a-a-p.org ///
- \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
-