summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-06-21 21:36:00 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-06-21 21:36:00 +0000
commit6763a3cc555fcf216e2be15ab3b866ead0138e0f (patch)
treec826cd17b4086d69d6769e87c79a7f032081baec /Completion/Unix
parent07c8612be653093b0f4e3c212edcb51eacdda7e7 (diff)
downloadzsh-6763a3cc555fcf216e2be15ab3b866ead0138e0f.tar.gz
zsh-6763a3cc555fcf216e2be15ab3b866ead0138e0f.tar.xz
zsh-6763a3cc555fcf216e2be15ab3b866ead0138e0f.zip
25231: fix approximation of absolute paths in root directory
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Type/_path_files2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files
index 6890379c5..413f69635 100644
--- a/Completion/Unix/Type/_path_files
+++ b/Completion/Unix/Type/_path_files
@@ -414,7 +414,7 @@ for prepath in "$prepaths[@]"; do
       fi
 
       if (( ! $#tmp1 )); then
-        tmp2=( ${^tmp2}/$PREFIX$SUFFIX )
+        tmp2=( ${^${tmp2:#/}}/$PREFIX$SUFFIX )
       elif [[ "$tmp1[1]" = */* ]]; then
         if [[ -n "$_comp_correct" ]]; then
           tmp2=( "$tmp1[@]" )