mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-04 20:40:57 +02:00
Merge of Frank Benkstein: 24047: fix compdef for more than three commands
using the same service.
This commit is contained in:
parent
c53c6d94d7
commit
75e1523d5e
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ compdef() {
|
||||||
if [[ "$1" = *\=* ]]; then
|
if [[ "$1" = *\=* ]]; then
|
||||||
cmd="${1%%\=*}"
|
cmd="${1%%\=*}"
|
||||||
svc="${1#*\=}"
|
svc="${1#*\=}"
|
||||||
func="$_comps[${_services[(R)$svc]:-$svc}]"
|
func="$_comps[${_services[(r)$svc]:-$svc}]"
|
||||||
[[ -n ${_services[$svc]} ]] &&
|
[[ -n ${_services[$svc]} ]] &&
|
||||||
svc=${_services[$svc]}
|
svc=${_services[$svc]}
|
||||||
[[ -z "$func" ]] &&
|
[[ -z "$func" ]] &&
|
||||||
|
|
Loading…
Reference in a new issue