131eba1
To: vim-dev@vim.org
131eba1
Subject: Patch 7.0.056
131eba1
Fcc: outbox
131eba1
From: Bram Moolenaar <Bram@moolenaar.net>
131eba1
Mime-Version: 1.0
131eba1
Content-Type: text/plain; charset=ISO-8859-1
131eba1
Content-Transfer-Encoding: 8bit
131eba1
------------
131eba1
131eba1
Patch 7.0.056
131eba1
Problem:    "#!something" gives an error message.
131eba1
Solution:   Ignore this line, so that it can be used in an executable Vim
131eba1
            script.
131eba1
Files:      src/ex_docmd.c
131eba1
131eba1
131eba1
*** ../vim-7.0.055/src/ex_docmd.c	Sat May 13 12:36:18 2006
131eba1
--- src/ex_docmd.c	Thu Aug 10 23:50:32 2006
131eba1
***************
131eba1
*** 1709,1714 ****
131eba1
--- 1712,1721 ----
131eba1
       */
131eba1
      save_cmdmod = cmdmod;
131eba1
      vim_memset(&cmdmod, 0, sizeof(cmdmod));
131eba1
+ 
131eba1
+     /* "#!anything" is handled like a comment. */
131eba1
+     if ((*cmdlinep)[0] == '#' && (*cmdlinep)[1] == '!')
131eba1
+ 	goto doend;
131eba1
  
131eba1
      /*
131eba1
       * Repeat until no more command modifiers are found.
131eba1
*** ../vim-7.0.055/src/version.c	Wed Aug 16 16:24:58 2006
131eba1
--- src/version.c	Wed Aug 16 17:05:35 2006
131eba1
***************
131eba1
*** 668,669 ****
131eba1
--- 668,671 ----
131eba1
  {   /* Add new patch number below this line */
131eba1
+ /**/
131eba1
+     56,
131eba1
  /**/
131eba1
131eba1
-- 
131eba1
hundred-and-one symptoms of being an internet addict:
131eba1
158. You get a tuner card so you can watch TV while surfing.
131eba1
131eba1
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
131eba1
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
131eba1
\\\        download, build and distribute -- http://www.A-A-P.org        ///
131eba1
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///