0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.0-081

This commit is contained in:
Bram Moolenaar
2006-09-02 15:54:18 +00:00
parent de94768cc7
commit 68c3174108
2 changed files with 8 additions and 1 deletions

View File

@@ -4521,7 +4521,9 @@ expand_shellcmd(filepat, num_file, file, flagsarg)
flags |= EW_FILE | EW_EXEC; flags |= EW_FILE | EW_EXEC;
/* For an absolute name we don't use $PATH. */ /* For an absolute name we don't use $PATH. */
if ((pat[0] == '.' && (vim_ispathsep(pat[1]) if (mch_isFullName(pat))
path = (char_u *)" ";
else if ((pat[0] == '.' && (vim_ispathsep(pat[1])
|| (pat[1] == '.' && vim_ispathsep(pat[2]))))) || (pat[1] == '.' && vim_ispathsep(pat[2])))))
path = (char_u *)"."; path = (char_u *)".";
else else
@@ -4534,6 +4536,9 @@ expand_shellcmd(filepat, num_file, file, flagsarg)
ga_init2(&ga, (int)sizeof(char *), 10); ga_init2(&ga, (int)sizeof(char *), 10);
for (s = path; *s != NUL; s = e) for (s = path; *s != NUL; s = e)
{ {
if (*s == ' ')
++s; /* Skip space used for absolute path name. */
#if defined(MSDOS) || defined(MSWIN) || defined(OS2) #if defined(MSDOS) || defined(MSWIN) || defined(OS2)
e = vim_strchr(s, ';'); e = vim_strchr(s, ';');
#else #else

View File

@@ -666,6 +666,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
81,
/**/ /**/
80, 80,
/**/ /**/