From 5d4faa678e1a3aede04654e6a914aa348313ecc6 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 4 Oct 2000 14:13:12 +0000 Subject: * 12886: Completion/User/_cvs: make _cvs_vendor_branches to handle remote-access style. --- Completion/User/_cvs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Completion') diff --git a/Completion/User/_cvs b/Completion/User/_cvs index 3f00bc1c3..57378ae47 100644 --- a/Completion/User/_cvs +++ b/Completion/User/_cvs @@ -744,11 +744,14 @@ _cvs_remote_directories () { (( $+functions[_cvs_vendor_branches] )) || _cvs_vendor_branches () { local expl vendor_branch - if [[ -n $opt_args[-b] ]]; then - _cvs_extract_vendor_branch -b "$opt_args[-b]" "$cvsroot" "$line[1]" \ - vendor_branch - else - _cvs_extract_vendor_branch "$cvsroot" "$line[1]" vendor_branch + vendor_branch=() + if zstyle -T ":completion:${curcontext}:" remote-access; then + if [[ -n $opt_args[-b] ]]; then + _cvs_extract_vendor_branch -b "$opt_args[-b]" "$cvsroot" "$line[1]" \ + vendor_branch + else + _cvs_extract_vendor_branch "$cvsroot" "$line[1]" vendor_branch + fi fi if (( $#vendor_branch )); then _wanted values expl 'vendor branch' compadd -a vendor_branch -- cgit 1.4.1