Karsten Hopp 4d267b
To: vim-dev@vim.org
Karsten Hopp 4d267b
Subject: Patch 7.0.081
Karsten Hopp 4d267b
Fcc: outbox
Karsten Hopp 4d267b
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 4d267b
Mime-Version: 1.0
Karsten Hopp 4d267b
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 4d267b
Content-Transfer-Encoding: 8bit
Karsten Hopp 4d267b
------------
Karsten Hopp 4d267b
Karsten Hopp 4d267b
Patch 7.0.081
Karsten Hopp 4d267b
Problem:    Command line completion doesn't work for a shell command with an
Karsten Hopp 4d267b
	    absolute path.
Karsten Hopp 4d267b
Solution:   Don't use $PATH when there is an absolute path.
Karsten Hopp 4d267b
Files:	    src/ex_getln.c
Karsten Hopp 4d267b
Karsten Hopp 4d267b
Karsten Hopp 4d267b
*** ../vim-7.0.080/src/ex_getln.c	Wed Aug 16 16:24:58 2006
Karsten Hopp 4d267b
--- src/ex_getln.c	Sat Sep  2 17:51:03 2006
Karsten Hopp 4d267b
***************
Karsten Hopp 4d267b
*** 4521,4527 ****
Karsten Hopp 4d267b
      flags |= EW_FILE | EW_EXEC;
Karsten Hopp 4d267b
  
Karsten Hopp 4d267b
      /* For an absolute name we don't use $PATH. */
Karsten Hopp 4d267b
!     if ((pat[0] == '.' && (vim_ispathsep(pat[1])
Karsten Hopp 4d267b
  			    || (pat[1] == '.' && vim_ispathsep(pat[2])))))
Karsten Hopp 4d267b
  	path = (char_u *)".";
Karsten Hopp 4d267b
      else
Karsten Hopp 4d267b
--- 4521,4529 ----
Karsten Hopp 4d267b
      flags |= EW_FILE | EW_EXEC;
Karsten Hopp 4d267b
  
Karsten Hopp 4d267b
      /* For an absolute name we don't use $PATH. */
Karsten Hopp 4d267b
!     if (mch_isFullName(pat))
Karsten Hopp 4d267b
! 	path = (char_u *)" ";
Karsten Hopp 4d267b
!     else if ((pat[0] == '.' && (vim_ispathsep(pat[1])
Karsten Hopp 4d267b
  			    || (pat[1] == '.' && vim_ispathsep(pat[2])))))
Karsten Hopp 4d267b
  	path = (char_u *)".";
Karsten Hopp 4d267b
      else
Karsten Hopp 4d267b
***************
Karsten Hopp 4d267b
*** 4534,4539 ****
Karsten Hopp 4d267b
--- 4536,4544 ----
Karsten Hopp 4d267b
      ga_init2(&ga, (int)sizeof(char *), 10);
Karsten Hopp 4d267b
      for (s = path; *s != NUL; s = e)
Karsten Hopp 4d267b
      {
Karsten Hopp 4d267b
+ 	if (*s == ' ')
Karsten Hopp 4d267b
+ 	    ++s;	/* Skip space used for absolute path name. */
Karsten Hopp 4d267b
+ 
Karsten Hopp 4d267b
  #if defined(MSDOS) || defined(MSWIN) || defined(OS2)
Karsten Hopp 4d267b
  	e = vim_strchr(s, ';');
Karsten Hopp 4d267b
  #else
Karsten Hopp 4d267b
*** ../vim-7.0.080/src/version.c	Sat Sep  2 16:36:46 2006
Karsten Hopp 4d267b
--- src/version.c	Sat Sep  2 17:54:35 2006
Karsten Hopp 4d267b
***************
Karsten Hopp 4d267b
*** 668,669 ****
Karsten Hopp 4d267b
--- 668,671 ----
Karsten Hopp 4d267b
  {   /* Add new patch number below this line */
Karsten Hopp 4d267b
+ /**/
Karsten Hopp 4d267b
+     81,
Karsten Hopp 4d267b
  /**/
Karsten Hopp 4d267b
Karsten Hopp 4d267b
-- 
Karsten Hopp 4d267b
TALL KNIGHT OF NI: Ni!
Karsten Hopp 4d267b
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 4d267b
Karsten Hopp 4d267b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 4d267b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 4d267b
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 4d267b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///