mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.4.209
Problem: When repeating a filter command "%" and "#" are expanded. Solution: Escape the command when storing for redo. (Christian Brabandt)
This commit is contained in:
parent
2fb9fa19e2
commit
529d2d6369
@ -1012,7 +1012,18 @@ do_bang(addr_count, eap, forceit, do_in, do_out)
|
|||||||
|
|
||||||
if (bangredo) /* put cmd in redo buffer for ! command */
|
if (bangredo) /* put cmd in redo buffer for ! command */
|
||||||
{
|
{
|
||||||
AppendToRedobuffLit(prevcmd, -1);
|
/* If % or # appears in the command, it must have been escaped.
|
||||||
|
* Reescape them, so that redoing them does not substitute them by the
|
||||||
|
* buffername. */
|
||||||
|
char_u *cmd = vim_strsave_escaped(prevcmd, (char_u *)"%#");
|
||||||
|
|
||||||
|
if (cmd != NULL)
|
||||||
|
{
|
||||||
|
AppendToRedobuffLit(cmd, -1);
|
||||||
|
vim_free(cmd);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
AppendToRedobuffLit(prevcmd, -1);
|
||||||
AppendToRedobuff((char_u *)"\n");
|
AppendToRedobuff((char_u *)"\n");
|
||||||
bangredo = FALSE;
|
bangredo = FALSE;
|
||||||
}
|
}
|
||||||
|
@ -738,6 +738,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
209,
|
||||||
/**/
|
/**/
|
||||||
208,
|
208,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user