summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Core/compinit1
1 files changed, 1 insertions, 0 deletions
diff --git a/Completion/Core/compinit b/Completion/Core/compinit
index e9e2c93ee..96779d7f7 100644
--- a/Completion/Core/compinit
+++ b/Completion/Core/compinit
@@ -249,6 +249,7 @@ compdef() {
 	  cmd="${i%%\=*}"
 	  svc="${i#*\=}"
           func="$_comps[${(k)_services[(R)$svc]:-$svc}]"
+          (( $+_services[$svc] )) && svc=$_services[$svc]
 	  [[ -z "$func" ]] &&
 	    func="${_patcomps[(K)$svc][1]:-${_postpatcomps[(K)$svc][1]}}"
           if [[ -n "$func" ]]; then