mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
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:
parent
e7615ddc22
commit
6d57b48a53
@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -551,7 +551,7 @@ static int included_patches[] = {
|
||||
740,
|
||||
739,
|
||||
// 738 NA
|
||||
// 737,
|
||||
737,
|
||||
736,
|
||||
// 735,
|
||||
// 734,
|
||||
|
Loading…
Reference in New Issue
Block a user