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