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