about summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-07 11:36:10 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-07 11:36:10 +0000
commit77f9967f32aa39ea0290162e0c3921a0ebca394e (patch)
tree1fe31b4ceab6760f6c9a7cfa16497f11332242c7 /Completion/Base
parent110849a947fd7c5716e886c9680922fd9716ac4d (diff)
downloadzsh-77f9967f32aa39ea0290162e0c3921a0ebca394e.tar.gz
zsh-77f9967f32aa39ea0290162e0c3921a0ebca394e.tar.xz
zsh-77f9967f32aa39ea0290162e0c3921a0ebca394e.zip
manual/7687
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/_arguments12
1 files changed, 12 insertions, 0 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments
index c8dceed26..49c28d193 100644
--- a/Completion/Base/_arguments
+++ b/Completion/Base/_arguments
@@ -417,6 +417,10 @@ while [[ cur -gt 0 ]]; do
       argbeg="$beg"
       inopt=yes
       if [[ -n "$xors[$ws[1]]" ]]; then
+	if [[ "$xors[$ws[1]]" = (*\ |):(\ *|) ]]; then
+          args=()
+	  rest=''
+        fi
         odescr=( "${(@)odescr:#(${(j:|:)~${=xors[$ws[1]]}}):*}" )
         unset {{,d,od}opts,xors}\[${^=xors[$ws[1]]}\]
       fi
@@ -475,6 +479,10 @@ while [[ cur -gt 0 ]]; do
 	  argbeg="$beg"
 	  inopt=yes
 	  if [[ -n "$xors[$tmp[1]]" ]]; then
+	    if [[ "$xors[$ws[1]]" = (*\ |):(\ *|) ]]; then
+              args=()
+	      rest=''
+            fi
             odescr=( "${(@)odescr:#(${(j:|:)~${=xors[$tmp[1]]}}):*}" )
             unset {{,d,od}opts,xors}\[${^=xors[$tmp[1]]}\]
           fi
@@ -521,6 +529,10 @@ while [[ cur -gt 0 ]]; do
 	  argbeg="$beg"
 	  inopt=yes
 	  if [[ -n "$xors[$tmp[1]]" ]]; then
+	    if [[ "$xors[$ws[1]]" = (*\ |):(\ *|) ]]; then
+              args=()
+	      rest=''
+            fi
             odescr=( "${(@)odescr:#(${(j:|:)~${=xors[$tmp[1]]}}):*}" )
             unset {{,d,od}opts,xors}\[${^=xors[$tmp[1]]}\]
           fi