0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.0164

This commit is contained in:
Bram Moolenaar
2005-12-07 20:59:24 +00:00
parent be79f90adc
commit b815dac061
2 changed files with 7 additions and 6 deletions

View File

@@ -4953,11 +4953,11 @@ mch_expand_wildcards(num_pat, pat, num_file, file, flags)
#else
++len; /* add space */
for (j = 0; pat[i][j] != NUL; )
if (vim_strchr((char_u *)" '", pat[i][j]) != NULL)
if (vim_strchr((char_u *)" ';&<>", pat[i][j]) != NULL)
{
len += 2; /* add two quotes */
while (pat[i][j] != NUL
&& vim_strchr((char_u *)" '", pat[i][j]) != NULL)
&& vim_strchr((char_u *)" ';&<>", pat[i][j]) != NULL)
{
++len;
++j;
@@ -5036,14 +5036,14 @@ mch_expand_wildcards(num_pat, pat, num_file, file, flags)
intick = !intick;
*p++ = pat[i][j++];
}
else if (!intick && vim_strchr((char_u *)" '",
else if (!intick && vim_strchr((char_u *)" ';&<>",
pat[i][j]) != NULL)
{
/* Put quotes around special characters, but not when
* inside ``. */
*p++ = '"';
while (pat[i][j] != NUL
&& vim_strchr((char_u *)" '", pat[i][j]) != NULL)
while (pat[i][j] != NUL && vim_strchr((char_u *)" ';&<>",
pat[i][j]) != NULL)
*p++ = pat[i][j++];
*p++ = '"';
}