1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-25 05:31:19 +02:00

38219: remove redundant left square bracket

This commit is contained in:
Han Pingtian 2016-04-14 16:46:27 +02:00 committed by Oliver Kiddle
parent 267f945ffe
commit 67c0174093
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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"