about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2002-04-16 08:27:44 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2002-04-16 08:27:44 +0000
commit2603a2d2b7cacc59a990acd58d2269acf45bb2c5 (patch)
tree5166104bf69c904fd3d3d1e59afba00be70d5cc5
parenta8e0c3b988ee63d45e6af1a19d32c1e6439a11bc (diff)
downloadzsh-2603a2d2b7cacc59a990acd58d2269acf45bb2c5.tar.gz
zsh-2603a2d2b7cacc59a990acd58d2269acf45bb2c5.tar.xz
zsh-2603a2d2b7cacc59a990acd58d2269acf45bb2c5.zip
make _path_files use match specs from the matcher style when calling compfiles (users/4836)
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Unix/Type/_path_files6
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index b13b25860..2b53a3ee0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2002-04-16  Sven Wischnowsky  <wischnow@zsh.org>
 
+	* users/4836: Completion/Unix/Type/_path_files: make
+	_path_files use match specs from the matcher style when calling
+	compfiles
+
 	* 16991: Completion/Base/Utility/_values: make _values not use
 	-Q
 
diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files
index b7a742596..aa9d87df1 100644
--- a/Completion/Unix/Type/_path_files
+++ b/Completion/Unix/Type/_path_files
@@ -335,11 +335,11 @@ for prepath in "$prepaths[@]"; do
     tmp2=( "$tmp1[@]" )
 
     if [[ "$tpre$tsuf" = */* ]]; then
-      compfiles -P$cfopt tmp1 accex "$skipped" "$_matcher" "$sdirs" fake
+      compfiles -P$cfopt tmp1 accex "$skipped" "$_matcher $matcher[2]" "$sdirs" fake
     elif [[ "$sopt" = *[/f]* ]]; then
-      compfiles -p$cfopt tmp1 accex "$skipped" "$_matcher" "$sdirs" fake "$pats[@]"
+      compfiles -p$cfopt tmp1 accex "$skipped" "$_matcher $matcher[2]" "$sdirs" fake "$pats[@]"
     else
-      compfiles -p$cfopt tmp1 accex "$skipped" "$_matcher" '' fake "$pats[@]"
+      compfiles -p$cfopt tmp1 accex "$skipped" "$_matcher $matcher[2]" '' fake "$pats[@]"
     fi
     tmp1=( $~tmp1 )