diff options
author | Oliver Kiddle <opk@zsh.org> | 2014-10-21 20:53:51 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2014-10-21 20:53:51 +0200 |
commit | 5e592fd9b0d0d5a0532ffa57667b3f5e7c09fa92 (patch) | |
tree | 2af5203a95aac5a327f8cd7fd9e9a4e1f207192a /Completion/Zsh/Command/_zattr | |
parent | af9f623273eb994d36d3f02ed37bac6edb10c7cb (diff) | |
download | zsh-5e592fd9b0d0d5a0532ffa57667b3f5e7c09fa92.tar.gz zsh-5e592fd9b0d0d5a0532ffa57667b3f5e7c09fa92.tar.xz zsh-5e592fd9b0d0d5a0532ffa57667b3f5e7c09fa92.zip |
33485: fixes for zstyle context handling
Diffstat (limited to 'Completion/Zsh/Command/_zattr')
-rw-r--r-- | Completion/Zsh/Command/_zattr | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Completion/Zsh/Command/_zattr b/Completion/Zsh/Command/_zattr index 1924bb28d..73564172b 100644 --- a/Completion/Zsh/Command/_zattr +++ b/Completion/Zsh/Command/_zattr @@ -1,7 +1,6 @@ #compdef zgetattr zsetattr zdelattr zlistattr -local state line expl ret=1 REPLY -local -a args privs +local context state line expl ret=1 REPLY case $service in zgetattr) @@ -30,5 +29,7 @@ esac && ret=0 if [[ $state = attrs ]]; then zlistattr ${~${(Q)line[1]}} REPLY 2> /dev/null - _wanted attrs expl 'attribute' compadd $REPLY + _wanted -C "$context[1]" attrs expl 'attribute' compadd -a REPLY && ret=0 fi + +return ret |