about summary refs log tree commit diff
path: root/Completion/User
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-10-04 14:13:12 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-10-04 14:13:12 +0000
commit5d4faa678e1a3aede04654e6a914aa348313ecc6 (patch)
tree493fc1adc9e60822fcbc79efb458371c40bf2a24 /Completion/User
parent6c4dfc3228dabcc335922f27c4fc57c181e33895 (diff)
downloadzsh-5d4faa678e1a3aede04654e6a914aa348313ecc6.tar.gz
zsh-5d4faa678e1a3aede04654e6a914aa348313ecc6.tar.xz
zsh-5d4faa678e1a3aede04654e6a914aa348313ecc6.zip
* 12886: Completion/User/_cvs: make _cvs_vendor_branches to handle
remote-access style.
Diffstat (limited to 'Completion/User')
-rw-r--r--Completion/User/_cvs13
1 files changed, 8 insertions, 5 deletions
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