1
0
forked from aniani/vim

updated for version 7.0065

This commit is contained in:
Bram Moolenaar
2005-03-28 20:58:01 +00:00
parent 8b879e7fe8
commit 582fd85b02
25 changed files with 278 additions and 197 deletions

View File

@@ -5163,10 +5163,19 @@ mch_expand_wildcards(num_pat, pat, num_file, file, flags)
STRCAT(command, pat[i]);
STRCAT(command, "\"");
#else
int intick = FALSE;
p = command + STRLEN(command);
*p++ = ' ';
for (j = 0; pat[i][j] != NUL; )
if (vim_strchr((char_u *)" '", pat[i][j]) != NULL)
{
if (pat[i][j] == '`')
{
intick = !intick;
*p++ = pat[i][j++];
}
else if (!intick && vim_strchr((char_u *)" '",
pat[i][j]) != NULL)
{
*p++ = '"';
while (pat[i][j] != NUL
@@ -5181,6 +5190,7 @@ mch_expand_wildcards(num_pat, pat, num_file, file, flags)
if ((*p++ = pat[i][j++]) == '\\' && pat[i][j] != NUL)
*p++ = pat[i][j++];
}
}
*p = NUL;
#endif
}