From 36b410a6f94372ad600b40f9eb23b397a208081e Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 10 Apr 2000 08:50:53 +0000 Subject: use special-dirs with _path_files -g (3019) --- Completion/Core/_path_files | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Completion/Core') diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index 3ddc62f94..377b9b7d0 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -293,7 +293,8 @@ for prepath in "$prepaths[@]"; do else tmp1=( ${^tmp1}${skipped}${^~pats} ) fi - if [[ "$sopt" = *[/f]* && ( -o globdots || "$PREFIX" = .* ) ]] && + if [[ ( "$sopt" = *[/f]* || "$pats" = *\([^[:blank:]]#/[^[:blank:]]#\)* ) && + ( -o globdots || "$PREFIX" = .* ) ]] && zstyle -s ":completion:${curcontext}:paths" special-dirs atmp; then if [[ "$atmp" = (yes|true|1|on) ]]; then tmp1=( "$tmp1[@]" . .. ) -- cgit 1.4.1