diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/compinit | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 559f321a7..87781da59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/Completion/compinit b/Completion/compinit index ad24ac7a5..2942f435d 100644 --- a/Completion/compinit +++ b/Completion/compinit @@ -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" ]] && |