mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 21:44:11 +01:00
make _path_files use match specs from the matcher style when calling compfiles (users/4836)
This commit is contained in:
parent
a8e0c3b988
commit
2603a2d2b7
@ -1,5 +1,9 @@
|
|||||||
2002-04-16 Sven Wischnowsky <wischnow@zsh.org>
|
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
|
* 16991: Completion/Base/Utility/_values: make _values not use
|
||||||
-Q
|
-Q
|
||||||
|
|
||||||
|
@ -335,11 +335,11 @@ for prepath in "$prepaths[@]"; do
|
|||||||
tmp2=( "$tmp1[@]" )
|
tmp2=( "$tmp1[@]" )
|
||||||
|
|
||||||
if [[ "$tpre$tsuf" = */* ]]; then
|
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
|
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
|
else
|
||||||
compfiles -p$cfopt tmp1 accex "$skipped" "$_matcher" '' fake "$pats[@]"
|
compfiles -p$cfopt tmp1 accex "$skipped" "$_matcher $matcher[2]" '' fake "$pats[@]"
|
||||||
fi
|
fi
|
||||||
tmp1=( $~tmp1 )
|
tmp1=( $~tmp1 )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user