From 6e8d3b0d41bcef7ebe0ba2e887eb25781e1437fe Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 9 Jun 2015 21:33:31 +0200 Subject: [PATCH] patch 7.4.737 Problem: On MS-Windows vimgrep over arglist doesn't work (Issue 361) Solution: Only escape backslashes in ## expansion when it is not used as the path separator. (James McCoy) --- src/ex_docmd.c | 6 +++++- src/version.c | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ex_docmd.c b/src/ex_docmd.c index af63b6c41..9ae8fff2a 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -10746,7 +10746,11 @@ arg_all() } for ( ; *p != NUL; ++p) { - if (*p == ' ' || *p == '\\') + if (*p == ' ' +#ifndef BACKSLASH_IN_FILENAME + || *p == '\\' +#endif + ) { /* insert a backslash */ if (retval != NULL) diff --git a/src/version.c b/src/version.c index e1ee8c23a..acff49046 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 737, /**/ 736, /**/ -- 2.40.0