From: Daniel Carl Date: Sun, 27 Oct 2013 20:39:06 +0000 (+0100) Subject: Allow | char in rhs of command if escaped. X-Git-Url: https://git.owens.tech/assets/me.jpg/assets/me.jpg/git?a=commitdiff_plain;h=1a49e669384c91a3e5ad38a09b9058f52527669b;p=vimb.git Allow | char in rhs of command if escaped. --- diff --git a/src/ex.c b/src/ex.c index 574dc28..14a463e 100644 --- a/src/ex.c +++ b/src/ex.c @@ -581,15 +581,15 @@ static gboolean parse_rhs(const char **input, ExArg *arg) /* get char until the end of command */ while (**input && **input != '\n' && **input != '|') { - /* if we find a backslash this escapes the next whitespace */ + /* if we find a backslash this escapes the next char */ if (**input == quote) { /* move pointer to the next char */ (*input)++; if (!*input) { /* if input ends here - use only the backslash */ g_string_append_c(arg->rhs, quote); - } else if (**input == ' ') { - /* escaped whitespace becomes only whitespace */ + } else if (**input == '|') { + /* escaped char becomes only char */ g_string_append_c(arg->rhs, **input); } else { /* put escape char and next char into the result string */