1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

44767: _description: Ignore -J

This commit is contained in:
dana 2019-10-12 02:02:07 -05:00
parent b79b779166
commit c6a14bd341
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,7 @@
2019-10-12 dana <dana@dana.is> 2019-10-12 dana <dana@dana.is>
* 44767: Completion/Base/Core/_description: Ignore -J
* 44681 (tweaked): Completion/Unix/Command/_composer: Eliminate * 44681 (tweaked): Completion/Unix/Command/_composer: Eliminate
questionable eval, fix quoting issue questionable eval, fix quoting issue

View file

@ -1,13 +1,13 @@
#autoload #autoload
local name nopt xopt format gname hidden hide match opts tag local name nopt xopt format gname hidden hide match opts tag
local -a gropt sort local -a ign gropt sort
opts=() opts=()
xopt=(-X) xopt=(-X)
nopt=() nopt=()
zparseopts -K -D -a nopt 1 2 V=gropt J x=xopt zparseopts -K -D -a nopt 1 2 V=gropt J=ign x=xopt
3="${${3##[[:blank:]]#}%%[[:blank:]]#}" 3="${${3##[[:blank:]]#}%%[[:blank:]]#}"
[[ -n "$3" ]] && _lastdescr=( "$_lastdescr[@]" "$3" ) [[ -n "$3" ]] && _lastdescr=( "$_lastdescr[@]" "$3" )