about summary refs log tree commit diff
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
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.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/User/_cvs13
2 files changed, 13 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index b10e1a2cc..410817ef3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-10-04  Tanaka Akira  <akr@zsh.org>
+
+	* 12886: Completion/User/_cvs: make _cvs_vendor_branches to handle
+	remote-access style.
+
 2000-10-04  Sven Wischnowsky  <wischnow@zsh.org>
 
 	* 12885: Src/Zle/zle_tricky.c: don't stop parsing too early when
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