mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +02:00
Don't lose empty arguments (11517)
This commit is contained in:
parent
bdfda774b7
commit
de2c2a89c6
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2000-05-22 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 11517: Completion/Core/_next_label: don't lose empty arguments
|
||||
|
||||
2000-05-22 Peter Stephenson <pws@cambridgesiliconradio.com>
|
||||
|
||||
* 11516: Completion/Core/compinstall: select=long-list can
|
||||
|
|
|
@ -13,10 +13,10 @@ if comptags -A "$1" curtag spec; then
|
|||
zformat -f descr "${curtag#*:}" "d:$3"
|
||||
_description "$gopt" "${curtag%:*}" "$2" "$descr"
|
||||
curtag="${curtag%:*}"
|
||||
eval "${2}=( \${(P)2} \$argv[4,-1] )"
|
||||
set -A $2 "${(P@)2}" "${argv[4,-1][@]}"
|
||||
else
|
||||
_description "$gopt" "$curtag" "$2" "$3"
|
||||
eval "${2}=( \$argv[4,-1] \${(P)2} )"
|
||||
set -A $2 "${argv[4,-1][@]}" "${(P@)2}"
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
|
Loading…
Reference in a new issue