Problem: Finding %s in shellpipe and shellredir does not ignore %%s.
Solution: Skip over %%. (lcd 47)
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 */
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 5,
/**/
4,
/**/