astepano / rpms / vim

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