1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-22 16:20:23 +02:00

users/4836: make _path_files use match specs from the matcher style when calling compfiles

This commit is contained in:
Sven Wischnowsky 2002-04-16 14:54:15 +00:00
parent f1ccfb6754
commit a39613fdc9
2 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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 )