about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Core/_expand2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 90b337060..9a5c9610c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-06-14  Oliver Kiddle  <opk@zsh.org>
+
+	* 11903: Completion/Core/_expand: handle suffix style for arrays
+
 2000-06-14  Peter Stephenson  <pws@cambridgesiliconradio.com>
 
 	* 11902: Test/08traps.ztst: add test for localtraps with SIGWINCH.
diff --git a/Completion/Core/_expand b/Completion/Core/_expand
index 9ba055a6e..381029d71 100644
--- a/Completion/Core/_expand
+++ b/Completion/Core/_expand
@@ -35,7 +35,7 @@ else
 fi
 
 zstyle -t ":completion:${curcontext}:" suffix &&
-  [[ "$word" = (\~*/*|\$[a-zA-Z0-9_]##[^a-zA-Z0-9_]*|\$\{*\}?*) ]] &&
+  [[ "$word" = (\~*/*|\$[a-zA-Z0-9_\[\]]##[^a-zA-Z0-9_\[\]]*|\$\{*\}?*) ]] &&
   return 1
 
 zstyle -t ":completion:${curcontext}:" accept-exact ||