1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 17:01:19 +02:00

* 12886: Completion/User/_cvs: make _cvs_vendor_branches to handle

remote-access style.
This commit is contained in:
Tanaka Akira 2000-10-04 14:13:12 +00:00
parent 6c4dfc3228
commit 5d4faa678e
2 changed files with 13 additions and 5 deletions

@ -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

@ -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