about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2002-04-16 14:54:15 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2002-04-16 14:54:15 +0000
commita39613fdc91dfd91f73101335a3432f0325aa100 (patch)
tree130cd1b09b96eb029eed5d21191c61564f039873 /Completion
parentf1ccfb6754479a5ac92f39573604c65b76f15ac7 (diff)
downloadzsh-a39613fdc91dfd91f73101335a3432f0325aa100.tar.gz
zsh-a39613fdc91dfd91f73101335a3432f0325aa100.tar.xz
zsh-a39613fdc91dfd91f73101335a3432f0325aa100.zip
users/4836: make _path_files use match specs from the matcher style when calling compfiles
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Type/_path_files6
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files
index cd18b6b25..32bf51fef 100644
--- a/Completion/Unix/Type/_path_files
+++ b/Completion/Unix/Type/_path_files
@@ -331,11 +331,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 )