* [PATCH] removal of redundant left square bracket in _subscript
@ 2016-03-29 7:50 Han Pingtian
2016-03-29 22:43 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Han Pingtian @ 2016-03-29 7:50 UTC (permalink / raw)
To: zsh-workers
Looks like there is a redundant left square bracket in _subscript.
---
Completion/Zsh/Context/_subscript | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Completion/Zsh/Context/_subscript b/Completion/Zsh/Context/_subscript
index 679f129..80642d8 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"
--
1.9.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] removal of redundant left square bracket in _subscript
2016-03-29 7:50 [PATCH] removal of redundant left square bracket in _subscript Han Pingtian
@ 2016-03-29 22:43 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2016-03-29 22:43 UTC (permalink / raw)
To: zsh-workers
On Mar 29, 3:50pm, Han Pingtian wrote:
}
} Looks like there is a redundant left square bracket in _subscript.
Yep, character class contains '[' twice. Harmless but redundant.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-29 22:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-29 7:50 [PATCH] removal of redundant left square bracket in _subscript Han Pingtian
2016-03-29 22:43 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).