about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHan Pingtian <hanpt@linux.vnet.ibm.com>2016-04-14 16:46:27 +0200
committerOliver Kiddle <opk@zsh.org>2016-04-14 16:46:27 +0200
commit67c017409367fc895fd73d5a73b40332daaeb545 (patch)
tree9acf6e4f604824e2ae90038085de7d5ba982e5cb
parent267f945ffee8b7820e1e9dc7f483d1ddac3870bf (diff)
downloadzsh-67c017409367fc895fd73d5a73b40332daaeb545.tar.gz
zsh-67c017409367fc895fd73d5a73b40332daaeb545.tar.xz
zsh-67c017409367fc895fd73d5a73b40332daaeb545.zip
38219: remove redundant left square bracket
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Zsh/Context/_subscript2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 35081c284..047fd0f30 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2016-04-14  Oliver Kiddle  <opk@zsh.org>
 
+	* Han Pingtian: 38219: Completion/Zsh/Context/_subscript:
+	remove redundant left square bracket
+
 	* 38287: Src/Zle/zle_vi.c: fix position for the end of a visual
 	selection range for the cursor on an empty last line in the buffer
 
diff --git a/Completion/Zsh/Context/_subscript b/Completion/Zsh/Context/_subscript
index 679f129a3..80642d8db 100644
--- a/Completion/Zsh/Context/_subscript
+++ b/Completion/Zsh/Context/_subscript
@@ -81,7 +81,7 @@ elif compset -P '\('; then
 elif [[ ${(Pt)${compstate[parameter]}} = assoc* ]]; then
   local suf MATCH MBEGIN MEND
   local -a keys
-  keys=("${(@)${(@k)${(P)compstate[parameter]}}//(#m)[\$\\\[\]\(\)\[\{\}]/\\$MATCH}")
+  keys=("${(@)${(@k)${(P)compstate[parameter]}}//(#m)[\$\\\[\]\(\)\{\}]/\\$MATCH}")
   keys=("${(@)keys//#%(#m)[*@]/(e)$MATCH}")
   [[ "$RBUFFER" != (|\\)\]* ]] && suf="$osuf"