mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-04-23 10:25:20 +02:00
51761: Use zstyle verbose for _parameters descriptions
According to the manual, extra-verbose means "more verbose at the cost of a probable decrease in completion speed". That's not the case here.
This commit is contained in:
parent
caa1c38c6f
commit
b41dd30c90
|
@ -1,5 +1,8 @@
|
|||
2023-05-21 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* Marlon Richert: 51761: Completion/Zsh/Type/_parameters:
|
||||
Use zstyle verbose for _parameters descriptions
|
||||
|
||||
* Marlon Richert: 51682: Completion/Base/Core/_main_complete,
|
||||
Test/Y01completion.ztst: Fix subscript completion bugs
|
||||
inside ~[...]
|
||||
|
|
|
@ -21,7 +21,7 @@ zstyle -t ":completion:${curcontext}:parameters" prefix-needed &&
|
|||
_description parameters expl parameter
|
||||
zparseopts -D -K -E g:=pattern
|
||||
|
||||
if zstyle -t ":completion:${curcontext}:parameters" extra-verbose; then
|
||||
if zstyle -t ":completion:${curcontext}:parameters" verbose; then
|
||||
described=(
|
||||
"${(@M)${(@k)parameters[(R)$~pattern[2]~*(hideval|local|special)*]}:#$~pfilt*}"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue