mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-19 11:31:26 +01:00
Frank Benkstein: 24047: fix compdef for more than three commands using the
same service
This commit is contained in:
parent
4ac2515ed8
commit
176ba31531
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-11-01 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* Frank Benkstein: 24047: Completion/compinit: fix compdef
|
||||
with more than three commands using the same service
|
||||
|
||||
2007-10-31 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 24045: Src/params.c: fix memory leak where old value of an
|
||||
|
|
|
@ -271,7 +271,7 @@ compdef() {
|
|||
if [[ "$1" = *\=* ]]; then
|
||||
cmd="${1%%\=*}"
|
||||
svc="${1#*\=}"
|
||||
func="$_comps[${_services[(R)$svc]:-$svc}]"
|
||||
func="$_comps[${_services[(r)$svc]:-$svc}]"
|
||||
[[ -n ${_services[$svc]} ]] &&
|
||||
svc=${_services[$svc]}
|
||||
[[ -z "$func" ]] &&
|
||||
|
|
Loading…
Reference in a new issue