diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-09-02 15:54:18 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-09-02 15:54:18 +0000 |
commit | 68c3174108bdc17c269128e15209c132046cf2c6 (patch) | |
tree | c2be054ff05f353c1cdc9b6eb8be5f744b9e0893 /src | |
parent | de94768cc79e6265b06db7067f208347f74bfcab (diff) | |
download | vim-68c3174108bdc17c269128e15209c132046cf2c6.zip |
updated for version 7.0-081
Diffstat (limited to 'src')
-rw-r--r-- | src/ex_getln.c | 7 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index ba3d114e1..617c24614 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -4521,7 +4521,9 @@ expand_shellcmd(filepat, num_file, file, flagsarg) flags |= EW_FILE | EW_EXEC; /* 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]))))) path = (char_u *)"."; else @@ -4534,6 +4536,9 @@ expand_shellcmd(filepat, num_file, file, flagsarg) ga_init2(&ga, (int)sizeof(char *), 10); for (s = path; *s != NUL; s = e) { + if (*s == ' ') + ++s; /* Skip space used for absolute path name. */ + #if defined(MSDOS) || defined(MSWIN) || defined(OS2) e = vim_strchr(s, ';'); #else diff --git a/src/version.c b/src/version.c index 718e91f50..114137492 100644 --- a/src/version.c +++ b/src/version.c @@ -667,6 +667,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 81, +/**/ 80, /**/ 79, |