home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.1.227 < prev    next >
Encoding:
Internet Message Format  |  2002-10-14  |  1.7 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.227
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.1.227
  11. Problem:    It is possible to use a variable name "asdf:asdf" and ":let j:asdf
  12.         = 5" does not give an error message. (Mikolaj Machowski)
  13. Solution:   Check for a ":" inside the variable name.
  14. Files:        src/eval.c
  15.  
  16.  
  17. *** ../vim61.226/src/eval.c    Mon Oct 14 20:20:44 2002
  18. --- src/eval.c    Mon Oct 14 21:41:28 2002
  19. ***************
  20. *** 7163,7168 ****
  21. --- 7163,7171 ----
  22.   {
  23.       if (name[1] != ':')
  24.       {
  25. +     /* If not "x:name" there must not be any ":" in the name. */
  26. +     if (vim_strchr(name, ':') != NULL)
  27. +         return NULL;
  28.       *varname = name;
  29.       if (current_funccal == NULL)
  30.           return &variables;            /* global variable */
  31. ***************
  32. *** 7352,7358 ****
  33. --- 7355,7364 ----
  34.       {
  35.       gap = find_var_ga(name, &varname);
  36.       if (gap == NULL)    /* illegal name */
  37. +     {
  38. +         EMSG2(_("E461: Illegal variable name: %s"), name);
  39.           return;
  40. +     }
  41.   
  42.       /* Try to use an empty entry */
  43.       for (i = gap->ga_len; --i >= 0; )
  44. *** ../vim61.226/src/version.c    Mon Oct 14 21:18:12 2002
  45. --- src/version.c    Mon Oct 14 21:39:31 2002
  46. ***************
  47. *** 608,609 ****
  48. --- 608,611 ----
  49.   {   /* Add new patch number below this line */
  50. + /**/
  51. +     227,
  52.   /**/
  53.  
  54. -- 
  55. hundred-and-one symptoms of being an internet addict:
  56. 222. You send more than 20 personal e-mails a day.
  57.  
  58.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  59. ///          Creator of Vim - Vi IMproved -- http://www.vim.org          \\\
  60. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  61.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  62.