summary refs log tree commit diff
path: root/Completion/Zsh
diff options
context:
space:
mode:
authorMatthew Martin <phy1729@gmail.com>2016-05-18 22:08:57 -0500
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2016-05-22 19:04:42 +0100
commit770500d69db0cf9dcee6ed62455aa79a38ed182e (patch)
treec0b4b1e171c1386f9cedfabcb3e2890661652d1c /Completion/Zsh
parent7700170d6d421ad39ff7a03ebbfbc47e08523e18 (diff)
downloadzsh-770500d69db0cf9dcee6ed62455aa79a38ed182e.tar.gz
zsh-770500d69db0cf9dcee6ed62455aa79a38ed182e.tar.xz
zsh-770500d69db0cf9dcee6ed62455aa79a38ed182e.zip
38515: _subsript twwaks
Need -- after print; also optimise array add
Diffstat (limited to 'Completion/Zsh')
-rw-r--r--Completion/Zsh/Context/_subscript5
1 files changed, 2 insertions, 3 deletions
diff --git a/Completion/Zsh/Context/_subscript b/Completion/Zsh/Context/_subscript
index 80642d8db..88813b54f 100644
--- a/Completion/Zsh/Context/_subscript
+++ b/Completion/Zsh/Context/_subscript
@@ -99,10 +99,9 @@ elif [[ ${(Pt)${compstate[parameter]}} = array* ]]; then
         list=()
         for i in "$ind[@]"; do
           if [[ "$i" = ${PREFIX}*${SUFFIX} ]]; then
-              list=( "$list[@]" 
-	             "${i}:$(print -D ${(P)${compstate[parameter]}[$i]})" )
+              list+=( "${i}:$(print -D -- ${(P)${compstate[parameter]}[$i]})" )
 	  else
-	      list=( "$list[@]" '' )
+	      list+=( '' )
 	  fi
         done
         zstyle -s ":completion:${curcontext}:indexes" list-separator sep || sep=--