about summary refs log tree commit diff
path: root/Completion/Core/_path_files
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-12-14 09:27:09 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-12-14 09:27:09 +0000
commit8cb0bdc6a089e3ca58af81dffe4695b45a4cc04e (patch)
tree2902eab15d02fa9c1da34a63a43760bb670095d7 /Completion/Core/_path_files
parent4e49d209a6862adba5eb36cff20acc635b29b2dd (diff)
downloadzsh-8cb0bdc6a089e3ca58af81dffe4695b45a4cc04e.tar.gz
zsh-8cb0bdc6a089e3ca58af81dffe4695b45a4cc04e.tar.xz
zsh-8cb0bdc6a089e3ca58af81dffe4695b45a4cc04e.zip
zsh-workers/9031
Diffstat (limited to 'Completion/Core/_path_files')
-rw-r--r--Completion/Core/_path_files16
1 files changed, 13 insertions, 3 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index cafec3c09..bbed17a1f 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -226,16 +226,26 @@ for prepath in "$prepaths[@]"; do
       tmp2=( ${^tmp1}*(-/) )
       if [[ ! -o globdots && "$PREFIX" = .* ]]; then
         tmp2=( "$tmp2[@]" ${^tmp1}.*(-/) )
-	zstyle -t ":completion${curcontext}:paths" special-dirs &&
+	if zstyle -s ":completion${curcontext}:paths" special-dirs atmp; then
+	  if [[ "$atmp" = (yes|true|1|on) ]]; then
 	    tmp2=( "$tmp2[@]" . .. )
+	  elif [[ "$atmp" = .. ]]; then
+	    tmp2=( "$tmp2[@]" .. )
+          fi
+        fi
       fi
     else
       tmp2=( ${^tmp1}${^~pats} )
       if [[ ! -o globdots && "$PREFIX" = .* ]]; then
         tmp2=( "$tmp2[@]" ${^tmp1}.${^~pats} )
-        [[ "$sopt" = */* ]] &&
-	    zstyle -t ":completion${curcontext}:paths" special-dirs &&
+        if [[ "$sopt" = */* ]] &&
+	   zstyle -s ":completion${curcontext}:paths" special-dirs atmp; then
+	  if [[ "$atmp" = (yes|true|1|on) ]]; then
 	    tmp2=( "$tmp2[@]" . .. )
+	  elif [[ "$atmp" = .. ]]; then
+	    tmp2=( "$tmp2[@]" .. )
+          fi
+        fi
       fi
     fi
     tmp1=( "$tmp2[@]" )