vim-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)

6e8d3b0d41

---

Fix a lint error for the closing parenthesis.
NOLINT does not help to do this.
This commit is contained in:
watiko 2016-02-09 15:21:29 +09:00
parent e7615ddc22
commit 6d57b48a53
2 changed files with 14 additions and 8 deletions

View File

@ -8283,16 +8283,22 @@ static char_u *arg_all(void)
retval[len] = ' ';
++len;
}
for (; *p != NUL; ++p) {
if (*p == ' ' || *p == '\\') {
/* insert a backslash */
if (retval != NULL)
for (; *p != NUL; p++) {
if (*p == ' '
#ifndef BACKSLASH_IN_FILENAME
|| *p == '\\'
#endif
) {
// insert a backslash
if (retval != NULL) {
retval[len] = '\\';
++len;
}
len++;
}
if (retval != NULL)
if (retval != NULL) {
retval[len] = *p;
++len;
}
len++;
}
}

View File

@ -551,7 +551,7 @@ static int included_patches[] = {
740,
739,
// 738 NA
// 737,
737,
736,
// 735,
// 734,