about summary refs log tree commit diff
path: root/Completion/Unix/Command/_sablotron
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2014-10-14 23:03:40 +0200
committerOliver Kiddle <opk@zsh.org>2014-10-14 23:04:45 +0200
commit13fc579343b24d298fb8905933b6000d7fcda114 (patch)
treecbc1000696357438714107635f93166bcab76d3a /Completion/Unix/Command/_sablotron
parent66320ca93a717467a0ed0d34da4c06257953aa50 (diff)
downloadzsh-13fc579343b24d298fb8905933b6000d7fcda114.tar.gz
zsh-13fc579343b24d298fb8905933b6000d7fcda114.tar.xz
zsh-13fc579343b24d298fb8905933b6000d7fcda114.zip
33467: correct return status on functions and numerous other minor fixes
Diffstat (limited to 'Completion/Unix/Command/_sablotron')
-rw-r--r--Completion/Unix/Command/_sablotron16
1 files changed, 8 insertions, 8 deletions
diff --git a/Completion/Unix/Command/_sablotron b/Completion/Unix/Command/_sablotron
index 170f08abd..53e0bec92 100644
--- a/Completion/Unix/Command/_sablotron
+++ b/Completion/Unix/Command/_sablotron
@@ -20,15 +20,8 @@ _arguments -C \
 if [[ -n "$state" ]]; then
   mode="${opt_args[(i)-c|--chain-xsl]:+chain}${opt_args[(i)-x|--batch-xml]:+batch-x}${opt_args[(i)-s|--batch-xsl]:+batch-s}"
   [[ $mode = (chain|batch-[xs]) ]] || mode=default
-  _tags assignments files
+  _tags files assignments
   while _tags; do
-    if _requested assignments; then
-      if [[ -prefix *= ]]; then
-        _message -e value value
-      else
-        _message -e parameter 'parameter name'
-      fi
-    fi
     if _requested files; then
       case $mode:${#words[1,CURRENT-1]:#(-*|*=*)}; in
         default:1|chain:<3->|batch-x:2|batch-s:1)
@@ -45,6 +38,13 @@ if [[ -n "$state" ]]; then
 	;;
       esac
     fi
+    if _requested assignments; then
+      if [[ -prefix *= ]]; then
+	_message -e value value
+      else
+	_message -e parameter 'parameter name' && ret=0
+      fi
+    fi
     (( ret )) || break
   done
 fi