about summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/_subscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/Completion/Base/_subscript b/Completion/Base/_subscript
index 5917c8234..c0c0b790d 100644
--- a/Completion/Base/_subscript
+++ b/Completion/Base/_subscript
@@ -24,9 +24,12 @@ elif [[ ${(Pt)${compstate[parameter]}} = array* ]]; then
       if zstyle -T ":completion:${curcontext}:indexes" verbose; then
         list=()
         for i in "$ind[@]"; do
-          [[ "$i" = ${PREFIX}*${SUFFIX} ]] &&
+          if [[ "$i" = ${PREFIX}*${SUFFIX} ]]; then
               list=( "$list[@]" 
 	             "${i}:$(print -D ${(P)${compstate[parameter]}[$i]})" )
+	  else
+	      list=( "$list[@]" '' )
+	  fi
         done
         zformat -a list ' -- ' "$list[@]"
 	disp=( -d list)