about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-11-05 09:29:52 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-11-05 09:29:52 +0000
commitb6f8ff697ff4583983a7e8818202191e14825a57 (patch)
tree8cbfa59a185dfdcd7f0af6afcd13e4a7aefcc0b4
parent184fef90189dbb078cd374fd48cf7252b178e543 (diff)
downloadzsh-b6f8ff697ff4583983a7e8818202191e14825a57.tar.gz
zsh-b6f8ff697ff4583983a7e8818202191e14825a57.tar.xz
zsh-b6f8ff697ff4583983a7e8818202191e14825a57.zip
manual/8562
-rw-r--r--Completion/Core/_path_files9
1 files changed, 7 insertions, 2 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index 6f21ea6ef..077c2608b 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -210,10 +210,15 @@ for prepath in "$prepaths[@]"; do
     # Get the matching files by globbing.
 
     if [[ "$tpre$tsuf" = */* ]]; then
-      tmp1=( ${^tmp1}*(-/) )
+      tmp2=( ${^tmp1}*(-/) )
+      [[ ! -o globdots && "$PREFIX" = .* ]] &&
+          tmp2=( "$tmp1[@]" ${^tmp1}.*(-/) )
     else
-      tmp1=( ${^tmp1}${^~pats} )
+      tmp2=( ${^tmp1}${^~pats} )
+      [[ ! -o globdots && "$PREFIX" = .* ]] &&
+          tmp2=( "$tmp1[@]" ${^tmp1}.${^~pats} )
     fi
+    tmp1=( "$tmp2[@]" )
 
     if [[ -n "$PREFIX$SUFFIX" ]]; then
       # See which of them match what's on the line.