summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ex_cmds.c42
-rw-r--r--src/version.c2
2 files changed, 24 insertions, 20 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 9d58ab41a..85e5be066 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -1778,28 +1778,30 @@ make_filter_cmd(
}
else
{
- char_u *p;
-
- /*
- * If there is a pipe, we have to put the '<' in front of it.
- * Don't do this when 'shellquote' is not empty, otherwise the
- * redirection would be inside the quotes.
- */
- if (*p_shq == NUL)
- {
- p = find_pipe(buf);
- if (p != NULL)
- *p = NUL;
- }
- STRCAT(buf, " <"); /* " < " causes problems on Amiga */
- STRCAT(buf, itmp);
- if (*p_shq == NUL)
+ STRCPY(buf, cmd);
+ if (itmp != NULL)
{
- p = find_pipe(cmd);
- if (p != NULL)
+ char_u *p;
+
+ // If there is a pipe, we have to put the '<' in front of it.
+ // Don't do this when 'shellquote' is not empty, otherwise the
+ // redirection would be inside the quotes.
+ if (*p_shq == NUL)
{
- STRCAT(buf, " "); /* insert a space before the '|' for DOS */
- STRCAT(buf, p);
+ p = find_pipe(buf);
+ if (p != NULL)
+ *p = NUL;
+ }
+ STRCAT(buf, " <"); // " < " causes problems on Amiga
+ STRCAT(buf, itmp);
+ if (*p_shq == NUL)
+ {
+ p = find_pipe(cmd);
+ if (p != NULL)
+ {
+ STRCAT(buf, " "); // insert a space before the '|' for DOS
+ STRCAT(buf, p);
+ }
}
}
}
diff --git a/src/version.c b/src/version.c
index 29273b544..229312bb2 100644
--- a/src/version.c
+++ b/src/version.c
@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2105,
+/**/
2104,
/**/
2103,