summaryrefslogtreecommitdiff
path: root/Completion/Darwin/Command/_fink
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2014-10-21 20:53:51 +0200
committerOliver Kiddle <opk@zsh.org>2014-10-21 20:53:51 +0200
commit5e592fd9b0d0d5a0532ffa57667b3f5e7c09fa92 (patch)
tree2af5203a95aac5a327f8cd7fd9e9a4e1f207192a /Completion/Darwin/Command/_fink
parentaf9f623273eb994d36d3f02ed37bac6edb10c7cb (diff)
downloadzsh-5e592fd9b0d0d5a0532ffa57667b3f5e7c09fa92.tar.gz
zsh-5e592fd9b0d0d5a0532ffa57667b3f5e7c09fa92.zip
33485: fixes for zstyle context handling
Diffstat (limited to 'Completion/Darwin/Command/_fink')
-rw-r--r--Completion/Darwin/Command/_fink7
1 files changed, 4 insertions, 3 deletions
diff --git a/Completion/Darwin/Command/_fink b/Completion/Darwin/Command/_fink
index 55c9e8da5..04a067ec1 100644
--- a/Completion/Darwin/Command/_fink
+++ b/Completion/Darwin/Command/_fink
@@ -86,7 +86,7 @@ _fink(){
'cleanup:removes obsolete package files'
)
- local context state line expl
+ local curcontext="$curcontext" state line expl
local -A opt_args
_arguments \
@@ -136,8 +136,8 @@ _fink(){
'(-t --tab)'{-t,--tab}'[output the list with tabs as field delimiter]' \
'(-w --width)'{-w=,--width=}'[width of display]:number or "auto"' \
'(1 : -)'{-h,--help}'[display help text]' \
- '1: :->pkgs' && return 0
-
+ '1: :->pkgs' && return
+
if [[ "$state" == pkgs ]]; then
_fink_get_packages
_wanted packages expl 'package hint' compadd -a packages
@@ -161,6 +161,7 @@ _fink(){
#scanpackages)
#checksums)
#cleanup)
+ *) _default ;;
esac
}