about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2000-06-14 16:12:13 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2000-06-14 16:12:13 +0000
commit545c0647701f8a677c40394c23700a229ca38003 (patch)
treeac3d0bf4169823b796fd1ad7d12109bc55e21cc5
parent05c34efa3ca9c5f91ba3cea951e6def722deb00d (diff)
downloadzsh-545c0647701f8a677c40394c23700a229ca38003.tar.gz
zsh-545c0647701f8a677c40394c23700a229ca38003.tar.xz
zsh-545c0647701f8a677c40394c23700a229ca38003.zip
Handle new suffix style with arrays (11903)
-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 ||