about summary refs log tree commit diff
path: root/Completion/Core
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-10 08:50:53 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-10 08:50:53 +0000
commit36b410a6f94372ad600b40f9eb23b397a208081e (patch)
tree0893a1f54eca41e2d6b52bd16f790f13805e5df3 /Completion/Core
parent724b065397e31d99fedffa613101293f2f14bca5 (diff)
downloadzsh-36b410a6f94372ad600b40f9eb23b397a208081e.tar.gz
zsh-36b410a6f94372ad600b40f9eb23b397a208081e.tar.xz
zsh-36b410a6f94372ad600b40f9eb23b397a208081e.zip
use special-dirs with _path_files -g (3019)
Diffstat (limited to 'Completion/Core')
-rw-r--r--Completion/Core/_path_files3
1 files changed, 2 insertions, 1 deletions
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[@]" . .. )