Karsten Hopp 568d9b
To: vim-dev@vim.org
Karsten Hopp 568d9b
Subject: Patch 7.2.306
Karsten Hopp 568d9b
Fcc: outbox
Karsten Hopp 568d9b
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 568d9b
Mime-Version: 1.0
Karsten Hopp 568d9b
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 568d9b
Content-Transfer-Encoding: 8bit
Karsten Hopp 568d9b
------------
Karsten Hopp 568d9b
Karsten Hopp 568d9b
Patch 7.2.306
Karsten Hopp 568d9b
Problem:    shellescape("10%%", 1) only escapes first %. (Christian Brabandt)
Karsten Hopp 568d9b
Solution:   Don't copy the character after the escaped one.
Karsten Hopp 568d9b
Files:	    src/misc2.c
Karsten Hopp 568d9b
Karsten Hopp 568d9b
Karsten Hopp 568d9b
*** ../vim-7.2.305/src/misc2.c	2009-11-11 16:56:13.000000000 +0100
Karsten Hopp 568d9b
--- src/misc2.c	2009-11-25 17:11:49.000000000 +0100
Karsten Hopp 568d9b
***************
Karsten Hopp 568d9b
*** 1390,1395 ****
Karsten Hopp 568d9b
--- 1390,1396 ----
Karsten Hopp 568d9b
  		*d++ = '\\';		/* insert backslash */
Karsten Hopp 568d9b
  		while (--l >= 0)	/* copy the var */
Karsten Hopp 568d9b
  		    *d++ = *p++;
Karsten Hopp 568d9b
+ 		continue;
Karsten Hopp 568d9b
  	    }
Karsten Hopp 568d9b
  
Karsten Hopp 568d9b
  	    MB_COPY_CHAR(p, d);
Karsten Hopp 568d9b
*** ../vim-7.2.305/src/version.c	2009-11-25 13:03:29.000000000 +0100
Karsten Hopp 568d9b
--- src/version.c	2009-11-25 17:13:54.000000000 +0100
Karsten Hopp 568d9b
***************
Karsten Hopp 568d9b
*** 683,684 ****
Karsten Hopp 568d9b
--- 683,686 ----
Karsten Hopp 568d9b
  {   /* Add new patch number below this line */
Karsten Hopp 568d9b
+ /**/
Karsten Hopp 568d9b
+     306,
Karsten Hopp 568d9b
  /**/
Karsten Hopp 568d9b
Karsten Hopp 568d9b
-- 
Karsten Hopp 568d9b
Article in the first Free Software Magazine: "Bram Moolenaar studied electrical
Karsten Hopp 568d9b
engineering at the Technical University of Delft and graduated in 1985 on a
Karsten Hopp 568d9b
multi-processor Unix architecture."
Karsten Hopp 568d9b
Response by "dimator": Could the school not afford a proper stage for the
Karsten Hopp 568d9b
ceremony?
Karsten Hopp 568d9b
Karsten Hopp 568d9b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 568d9b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 568d9b
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 568d9b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///