0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.4b.005

Problem:    Finding %s in shellpipe and shellredir does not ignore %%s.
Solution:   Skip over %%. (lcd 47)
This commit is contained in:
Bram Moolenaar 2013-08-02 14:15:13 +02:00
parent eec3e1e72a
commit 542805a59d
2 changed files with 8 additions and 2 deletions

View File

@ -1622,10 +1622,14 @@ append_redir(buf, buflen, opt, fname)
char_u *end;
end = buf + STRLEN(buf);
/* find "%s", skipping "%%" */
/* find "%s" */
for (p = opt; (p = vim_strchr(p, '%')) != NULL; ++p)
if (p[1] == 's')
{
if (p[1] == 's') /* found %s */
break;
if (p[1] == '%') /* skip %% */
++p;
}
if (p != NULL)
{
*end = ' '; /* not really needed? Not with sh, ksh or bash */

View File

@ -727,6 +727,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
5,
/**/
4,
/**/