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.134 < prev    next >
Encoding:
Internet Message Format  |  2002-07-20  |  2.1 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.134
  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.134
  11. Problem:    An error for a trailing argument of ":match" should not be given
  12.             after ":if 0". (Servatius Brandt)
  13. Solution:   Only do the check when executing commands.
  14. Files:      src/ex_docmd.c
  15.  
  16.  
  17. *** ../vim61.133/src/ex_docmd.c    Sun Jul 21 20:51:28 2002
  18. --- src/ex_docmd.c    Thu Jul 18 20:44:49 2002
  19. ***************
  20. *** 8915,8932 ****
  21.       p = skipwhite(p);
  22.       if (*p == NUL)
  23.       {
  24.           EMSG2(_(e_invarg2), eap->arg);
  25.           return;
  26.       }
  27.       end = skip_regexp(p + 1, *p, TRUE, NULL);
  28. -     if (*end != NUL && !ends_excmd(*skipwhite(end + 1)))
  29. -     {
  30. -         eap->errmsg = e_trailing;
  31. -         return;
  32. -     }
  33.       if (!eap->skip)
  34.       {
  35.           c = *end;
  36.           *end = NUL;
  37.           curwin->w_match.regprog = vim_regcomp(p + 1, TRUE);
  38. --- 8922,8940 ----
  39.       p = skipwhite(p);
  40.       if (*p == NUL)
  41.       {
  42. +         /* There must be two arguments. */
  43.           EMSG2(_(e_invarg2), eap->arg);
  44.           return;
  45.       }
  46.       end = skip_regexp(p + 1, *p, TRUE, NULL);
  47.       if (!eap->skip)
  48.       {
  49. +         if (*end != NUL && !ends_excmd(*skipwhite(end + 1)))
  50. +         {
  51. +         eap->errmsg = e_trailing;
  52. +         return;
  53. +         }
  54.           c = *end;
  55.           *end = NUL;
  56.           curwin->w_match.regprog = vim_regcomp(p + 1, TRUE);
  57. *** ../vim61.133/src/version.c    Sun Jul 21 20:58:30 2002
  58. --- src/version.c    Sun Jul 21 21:00:05 2002
  59. ***************
  60. *** 608,609 ****
  61. --- 608,611 ----
  62.   {   /* Add new patch number below this line */
  63. + /**/
  64. +     134,
  65.   /**/
  66.  
  67. -- 
  68. hundred-and-one symptoms of being an internet addict:
  69. 15. Your heart races faster and beats irregularly each time you see a new WWW
  70.     site address in print or on TV, even though you've never had heart
  71.     problems before.
  72.  
  73.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  74. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  75. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  76.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  77.