|
|
22c937 |
To: vim_dev@googlegroups.com
|
|
|
22c937 |
Subject: Patch 7.4.209
|
|
|
22c937 |
Fcc: outbox
|
|
|
22c937 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
22c937 |
Mime-Version: 1.0
|
|
|
22c937 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c937 |
Content-Transfer-Encoding: 8bit
|
|
|
22c937 |
------------
|
|
|
22c937 |
|
|
|
22c937 |
Patch 7.4.209
|
|
|
22c937 |
Problem: When repeating a filter command "%" and "#" are expanded.
|
|
|
22c937 |
Solution: Escape the command when storing for redo. (Christian Brabandt)
|
|
|
22c937 |
Files: src/ex_cmds.c
|
|
|
22c937 |
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.208/src/ex_cmds.c 2014-02-22 22:27:20.768904692 +0100
|
|
|
22c937 |
--- src/ex_cmds.c 2014-03-19 17:40:01.138104365 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 1012,1018 ****
|
|
|
22c937 |
|
|
|
22c937 |
if (bangredo) /* put cmd in redo buffer for ! command */
|
|
|
22c937 |
{
|
|
|
22c937 |
! AppendToRedobuffLit(prevcmd, -1);
|
|
|
22c937 |
AppendToRedobuff((char_u *)"\n");
|
|
|
22c937 |
bangredo = FALSE;
|
|
|
22c937 |
}
|
|
|
22c937 |
--- 1012,1029 ----
|
|
|
22c937 |
|
|
|
22c937 |
if (bangredo) /* put cmd in redo buffer for ! command */
|
|
|
22c937 |
{
|
|
|
22c937 |
! /* If % or # appears in the command, it must have been escaped.
|
|
|
22c937 |
! * Reescape them, so that redoing them does not substitute them by the
|
|
|
22c937 |
! * buffername. */
|
|
|
22c937 |
! char_u *cmd = vim_strsave_escaped(prevcmd, (char_u *)"%#");
|
|
|
22c937 |
!
|
|
|
22c937 |
! if (cmd != NULL)
|
|
|
22c937 |
! {
|
|
|
22c937 |
! AppendToRedobuffLit(cmd, -1);
|
|
|
22c937 |
! vim_free(cmd);
|
|
|
22c937 |
! }
|
|
|
22c937 |
! else
|
|
|
22c937 |
! AppendToRedobuffLit(prevcmd, -1);
|
|
|
22c937 |
AppendToRedobuff((char_u *)"\n");
|
|
|
22c937 |
bangredo = FALSE;
|
|
|
22c937 |
}
|
|
|
22c937 |
*** ../vim-7.4.208/src/version.c 2014-03-19 17:32:32.454097490 +0100
|
|
|
22c937 |
--- src/version.c 2014-03-19 17:40:24.810104728 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 740,741 ****
|
|
|
22c937 |
--- 740,743 ----
|
|
|
22c937 |
{ /* Add new patch number below this line */
|
|
|
22c937 |
+ /**/
|
|
|
22c937 |
+ 209,
|
|
|
22c937 |
/**/
|
|
|
22c937 |
|
|
|
22c937 |
--
|
|
|
22c937 |
System administrators are just like women: You can't live with them and you
|
|
|
22c937 |
can't live without them.
|
|
|
22c937 |
|
|
|
22c937 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
22c937 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
22c937 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
22c937 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|