about summary refs log tree commit diff
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
parent724b065397e31d99fedffa613101293f2f14bca5 (diff)
downloadzsh-36b410a6f94372ad600b40f9eb23b397a208081e.tar.gz
zsh-36b410a6f94372ad600b40f9eb23b397a208081e.tar.xz
zsh-36b410a6f94372ad600b40f9eb23b397a208081e.zip
use special-dirs with _path_files -g (3019)
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Core/_path_files3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9a4a845e7..5692bb58d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-04-10  Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
 
+	* users/3019: Completion/Core/_path_files: use special-dirs with
+ 	_path_files -g
+	
 	* 10614: Src/Modules/parameter.c: more careful with checking index
  	of $history
 	
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[@]" . .. )