Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Multipart completion problem?



I wrote:

> ...
> 
> The missing slash was caused by a incomplete pattern when weeding out
> the names not matching what's on the line.

The test I just added was too restrictive, sorry folks.

Bye
 Sven

diff -u oc/Core/_path_files Completion/Core/_path_files
--- oc/Core/_path_files	Tue Mar 23 13:36:24 1999
+++ Completion/Core/_path_files	Tue Mar 23 13:47:14 1999
@@ -424,7 +424,7 @@
   suffixes=( $str$^pats )
   suffixes=( "${(@)suffixes:gs.**.*.}" )
   tmp2=( ${~tmp1}${~matchflags}${~suffixes} )
-  tmp2=("${(@M)tmp2:#${tmp1}$~patlast}")
+  tmp2=("${(@M)tmp2:#*$~patlast}")
 
   if [[ $#tmp2 -eq 0 ]]; then
     # No match, insert the expanded path and add the original tail.

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author