about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-13 16:33:28 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-13 16:33:28 +0000
commit52152bec7648ed4379053eb2ba3d3290af202195 (patch)
tree180d739851f1a9bb69326863acf8a6e57803c5dc /Completion
parent483cb415f16a48bfbc605c4971f75317cbe59132 (diff)
downloadzsh-52152bec7648ed4379053eb2ba3d3290af202195.tar.gz
zsh-52152bec7648ed4379053eb2ba3d3290af202195.tar.xz
zsh-52152bec7648ed4379053eb2ba3d3290af202195.zip
manual/7808-for-pws-4
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Base/_arguments6
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments
index 7d5aa9ca9..808bfc2ab 100644
--- a/Completion/Base/_arguments
+++ b/Completion/Base/_arguments
@@ -561,7 +561,7 @@ while [[ cur -gt 0 ]]; do
           uns="${ws[1][2,-1]}"
 
       if [[ -n "$uns" ]]; then
-        uns="${(@j::)${(v)=xors[(I)${ws[1][1]}[$uns]]}#[-+]}"
+        uns="${(@j::)${(M@)${(v)=xors[(I)${ws[1][1]}[$uns]]}:#??}#[-+]}"
 	if  [[ -n "$uns" ]]; then
 	  tmp=(
 	    "opts[${(@)^opts[(I)${ws[1][1]}[$uns]]}]"
@@ -677,11 +677,11 @@ if [[ -z "$def" || "$def" = :* ]]; then
     done
   fi
 
-  [[ -n "$sopts" && -n "$opt" && "$PREFIX" = [-+]${~soptseq}[$sopts] ]] && \
+  [[ -n "$sopts" && -n "$opt" && "$PREFIX" = [-+]${~soptseq}[$sopts] ]] &&
       uns="${PREFIX[2,-1]}"
 
   if [[ -n "$uns" ]]; then
-    uns="${(@j::)${(v)=xors[(I)${ws[1][1]}[$uns]]}#[-+]}"
+    uns="${(@j::)${(M@)${(v)=xors[(I)${ws[1][1]}[$uns]]}:#??}#[-+]}"
     if [[ -n "$uns" ]]; then
       tmp=(
         "opts[${(@)^opts[(I)${pre[1]}[$uns]]}]"