]>
Commit | Line | Data |
---|---|---|
7fdb47f1 AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.0.081 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.0.081 | |
11 | Problem: Command line completion doesn't work for a shell command with an | |
12 | absolute path. | |
13 | Solution: Don't use $PATH when there is an absolute path. | |
14 | Files: src/ex_getln.c | |
15 | ||
16 | ||
17 | *** ../vim-7.0.080/src/ex_getln.c Wed Aug 16 16:24:58 2006 | |
18 | --- src/ex_getln.c Sat Sep 2 17:51:03 2006 | |
19 | *************** | |
20 | *** 4521,4527 **** | |
21 | flags |= EW_FILE | EW_EXEC; | |
22 | ||
23 | /* For an absolute name we don't use $PATH. */ | |
24 | ! if ((pat[0] == '.' && (vim_ispathsep(pat[1]) | |
25 | || (pat[1] == '.' && vim_ispathsep(pat[2]))))) | |
26 | path = (char_u *)"."; | |
27 | else | |
28 | --- 4521,4529 ---- | |
29 | flags |= EW_FILE | EW_EXEC; | |
30 | ||
31 | /* For an absolute name we don't use $PATH. */ | |
32 | ! if (mch_isFullName(pat)) | |
33 | ! path = (char_u *)" "; | |
34 | ! else if ((pat[0] == '.' && (vim_ispathsep(pat[1]) | |
35 | || (pat[1] == '.' && vim_ispathsep(pat[2]))))) | |
36 | path = (char_u *)"."; | |
37 | else | |
38 | *************** | |
39 | *** 4534,4539 **** | |
40 | --- 4536,4544 ---- | |
41 | ga_init2(&ga, (int)sizeof(char *), 10); | |
42 | for (s = path; *s != NUL; s = e) | |
43 | { | |
44 | + if (*s == ' ') | |
45 | + ++s; /* Skip space used for absolute path name. */ | |
46 | + | |
47 | #if defined(MSDOS) || defined(MSWIN) || defined(OS2) | |
48 | e = vim_strchr(s, ';'); | |
49 | #else | |
50 | *** ../vim-7.0.080/src/version.c Sat Sep 2 16:36:46 2006 | |
51 | --- src/version.c Sat Sep 2 17:54:35 2006 | |
52 | *************** | |
53 | *** 668,669 **** | |
54 | --- 668,671 ---- | |
55 | { /* Add new patch number below this line */ | |
56 | + /**/ | |
57 | + 81, | |
58 | /**/ | |
59 | ||
60 | -- | |
61 | TALL KNIGHT OF NI: Ni! | |
62 | "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD | |
63 | ||
64 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
65 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
66 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
67 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |