about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-04-09 13:06:47 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-04-09 13:06:47 +0000
commit62b586bf9ffc142a5fb2a55707d14d9d02242947 (patch)
treec3909f1e0defe160e8c9eb00f2386159cf60b915
parent367148fdbe48464ddfd7114a21c0e4c7840c4dfe (diff)
downloadzsh-62b586bf9ffc142a5fb2a55707d14d9d02242947.tar.gz
zsh-62b586bf9ffc142a5fb2a55707d14d9d02242947.tar.xz
zsh-62b586bf9ffc142a5fb2a55707d14d9d02242947.zip
24806: more assoc subscript completion + typos
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Zsh/Context/_subscript2
-rw-r--r--Doc/Zsh/params.yo4
3 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 990f8214a..7a1582150 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-04-09  Peter Stephenson  <pws@csr.com>
 
+	* 24806: Doc/Zsh/params.yo, Completion/Zsh/Context/_subscript: fix
+	typos, completing of * and @.
+
 	* 24804: Completion/Zsh/Context/_subscript: quoting of
 	associative array keys for subscripts was wrong.
 
diff --git a/Completion/Zsh/Context/_subscript b/Completion/Zsh/Context/_subscript
index ba398ffa5..0b23c1cac 100644
--- a/Completion/Zsh/Context/_subscript
+++ b/Completion/Zsh/Context/_subscript
@@ -70,7 +70,7 @@ elif [[ ${(Pt)${compstate[parameter]}} = assoc* ]]; then
   local suf MATCH MBEGIN MEND
   local -a keys
   keys=(${${(kP)compstate[parameter]}//(#m)[\$\\\[\]\(\)\[\{\}]/\\$MATCH})
-
+  keys=(${keys//#%(#m)[*@]/(e)$MATCH})
   [[ "$RBUFFER" != (|\\)\]* ]] && suf="$osuf"
 
   _wanted association-keys expl 'association key' \
diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo
index 9fd21ab5d..dedde051f 100644
--- a/Doc/Zsh/params.yo
+++ b/Doc/Zsh/params.yo
@@ -344,8 +344,8 @@ The same rule applies to parentheses (`tt(LPAR())' and `tt(RPAR())') and
 braces (`tt({)' and `tt(})'): they must appear either in balanced pairs or
 preceded by a backslash, and backslashes that protect parentheses or
 braces are removed during parsing.  This is because parameter expansions
-may be surrounded balanced braces, and subscript flags are introduced by
-balanced parenthesis.
+may be surrounded by balanced braces, and subscript flags are introduced by
+balanced parentheses.
 
 The second difference is that a double-quote (`tt(")') may appear as part
 of a subscript expression without being preceded by a backslash, and