about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-10 15:35:21 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-10 15:35:21 +0000
commita48427e75a4a3fb8482af714b1b80eef4d867b64 (patch)
treebbf011967fbdabe85baf579ab55c011d423063c4
parentd3fa7746026492bd0c193bf299d5d43c54658232 (diff)
downloadzsh-a48427e75a4a3fb8482af714b1b80eef4d867b64.tar.gz
zsh-a48427e75a4a3fb8482af714b1b80eef4d867b64.tar.xz
zsh-a48427e75a4a3fb8482af714b1b80eef4d867b64.zip
zsh-workers/9664
-rw-r--r--Completion/Core/_path_files8
1 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index 5ff8d7dd5..cac4acd54 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -415,9 +415,9 @@ for prepath in "$prepaths[@]"; do
     # Next we see if this component is ambiguous.
 
     if [[ "$tmp3" = */* ]]; then
-      tmp4=( "${(@)tmp1:#${tmp1[1]%%/*}/*}" )
+       tmp4=$tmp1[(I)^${tmp1[1]%%/*}/*]
     else
-      tmp4=( "${(@)tmp1:#${tmp1[1]}}" )
+       tmp4=$tmp1[(I)^${tmp1[1]}]
     fi
 
     if [[ "$tpre" = */* ]]; then
@@ -430,7 +430,7 @@ for prepath in "$prepaths[@]"; do
       tmp2="${cpre}${tpre}"
     fi
 
-    if (( $#tmp4 )) ||
+    if (( tmp4 )) ||
        [[ -n "$compstate[pattern_match]" && "$tmp2" != "${(q)tmp2}" ]]; then
       # It is. For menucompletion we now add the possible completions
       # for this component with the unambigous prefix we have built
@@ -444,7 +444,7 @@ for prepath in "$prepaths[@]"; do
 
       if [[ -n $menu ]] ||
          ! zstyle -t ":completion:${curcontext}:paths" expand suffix; then
-        (( $#tmp4 )) && zstyle -t ":completion:${curcontext}:paths" cursor &&
+        (( tmp4 )) && zstyle -t ":completion:${curcontext}:paths" cursor &&
             compstate[to_end]=''
         if [[ "$tmp3" = */* ]]; then
 	  compadd -Qf "$mopts[@]" -p "$linepath$tmp2" -s "/${tmp3#*/}" \