mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-05 11:01:13 +02:00
* 12886: Completion/User/_cvs: make _cvs_vendor_branches to handle
remote-access style.
This commit is contained in:
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>
|
2000-10-04 Sven Wischnowsky <wischnow@zsh.org>
|
||||||
|
|
||||||
* 12885: Src/Zle/zle_tricky.c: don't stop parsing too early when
|
* 12885: Src/Zle/zle_tricky.c: don't stop parsing too early when
|
||||||
|
|
|
@ -744,11 +744,14 @@ _cvs_remote_directories () {
|
||||||
(( $+functions[_cvs_vendor_branches] )) ||
|
(( $+functions[_cvs_vendor_branches] )) ||
|
||||||
_cvs_vendor_branches () {
|
_cvs_vendor_branches () {
|
||||||
local expl vendor_branch
|
local expl vendor_branch
|
||||||
if [[ -n $opt_args[-b] ]]; then
|
vendor_branch=()
|
||||||
_cvs_extract_vendor_branch -b "$opt_args[-b]" "$cvsroot" "$line[1]" \
|
if zstyle -T ":completion:${curcontext}:" remote-access; then
|
||||||
vendor_branch
|
if [[ -n $opt_args[-b] ]]; then
|
||||||
else
|
_cvs_extract_vendor_branch -b "$opt_args[-b]" "$cvsroot" "$line[1]" \
|
||||||
_cvs_extract_vendor_branch "$cvsroot" "$line[1]" vendor_branch
|
vendor_branch
|
||||||
|
else
|
||||||
|
_cvs_extract_vendor_branch "$cvsroot" "$line[1]" vendor_branch
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if (( $#vendor_branch )); then
|
if (( $#vendor_branch )); then
|
||||||
_wanted values expl 'vendor branch' compadd -a vendor_branch
|
_wanted values expl 'vendor branch' compadd -a vendor_branch
|
||||||
|
|
Loading…
Reference in a new issue