summary refs log tree commit diff
path: root/Completion/Zsh/Command
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2015-08-15 03:02:32 +0200
committerMikael Magnusson <mikachu@gmail.com>2015-08-17 00:56:48 +0200
commit3f171fd463ed9d10c75fd486eabf33a4c60bb86c (patch)
treebe3b48a9efa833a1322e7ae2c4085ed76d2f8f64 /Completion/Zsh/Command
parent5d019f426af8b2a600ee03e43782c24b357d1401 (diff)
downloadzsh-3f171fd463ed9d10c75fd486eabf33a4c60bb86c.tar.gz
zsh-3f171fd463ed9d10c75fd486eabf33a4c60bb86c.tar.xz
zsh-3f171fd463ed9d10c75fd486eabf33a4c60bb86c.zip
36177: _setopt: complete printexitvalue both ways
Diffstat (limited to 'Completion/Zsh/Command')
-rw-r--r--Completion/Zsh/Command/_setopt5
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Zsh/Command/_setopt b/Completion/Zsh/Command/_setopt
index fb38d1da6..86c0965f9 100644
--- a/Completion/Zsh/Command/_setopt
+++ b/Completion/Zsh/Command/_setopt
@@ -2,8 +2,9 @@
 
 local expl ret=1
 local -a onopts offopts
-onopts=( ${(k)_comp_caller_options[(R)on]} )
-offopts=( ${(k)_comp_caller_options[(R)off]} )
+onopts=( ${(k)_comp_caller_options[(R)on]} printexitvalue )
+offopts=( ${(k)_comp_caller_options[(R)off]} printexitvalue )
+typeset -U onopts offopts
 case $service in
   setopt) onopts=(no$onopts) ;;
   unsetopt) offopts=(no$offopts) ;;