home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.0 / 7.0.081 < prev    next >
Encoding:
Internet Message Format  |  2006-09-01  |  2.0 KB

  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.   #if defined(MSDOS) || defined(MSWIN) || defined(OS2)
  47.       e = vim_strchr(s, ';');
  48.   #else
  49. *** ../vim-7.0.080/src/version.c    Sat Sep  2 16:36:46 2006
  50. --- src/version.c    Sat Sep  2 17:54:35 2006
  51. ***************
  52. *** 668,669 ****
  53. --- 668,671 ----
  54.   {   /* Add new patch number below this line */
  55. + /**/
  56. +     81,
  57.   /**/
  58.  
  59. -- 
  60. TALL KNIGHT OF NI: Ni!
  61.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  62.  
  63.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  64. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  65. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  66.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  67.