summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2007-11-01 10:56:39 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2007-11-01 10:56:39 +0000
commit176ba3153192ce118548c1b1f6f1fae1dfda15ee (patch)
tree7c6a3f6d57340910c2d99644ffbed024c8be84e5
parent4ac2515ed8b0309369bd4eb3188e862080c1f564 (diff)
downloadzsh-176ba3153192ce118548c1b1f6f1fae1dfda15ee.tar.gz
zsh-176ba3153192ce118548c1b1f6f1fae1dfda15ee.tar.xz
zsh-176ba3153192ce118548c1b1f6f1fae1dfda15ee.zip
Frank Benkstein: 24047: fix compdef for more than three commands using the
same service
-rw-r--r--ChangeLog5
-rw-r--r--Completion/compinit2
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" ]] &&