about summary refs log tree commit diff
path: root/Completion/Core/_multi_parts
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-10 11:56:36 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-10 11:56:36 +0000
commitd1fc7aafc77a15c150a139849536e1618f48ff94 (patch)
treefbdbbf72846f7a9927709cf5537567bd1d634f85 /Completion/Core/_multi_parts
parent3c9c93a727a7777374b5f3daf463e1659e65e9c2 (diff)
downloadzsh-d1fc7aafc77a15c150a139849536e1618f48ff94.tar.gz
zsh-d1fc7aafc77a15c150a139849536e1618f48ff94.tar.xz
zsh-d1fc7aafc77a15c150a139849536e1618f48ff94.zip
zsh-workers/9648
Diffstat (limited to 'Completion/Core/_multi_parts')
-rw-r--r--Completion/Core/_multi_parts10
1 files changed, 4 insertions, 6 deletions
diff --git a/Completion/Core/_multi_parts b/Completion/Core/_multi_parts
index 61bd3acaf..6aa6da064 100644
--- a/Completion/Core/_multi_parts
+++ b/Completion/Core/_multi_parts
@@ -13,15 +13,13 @@ typeset -U tmp2
 
 # Get the options.
 
-zparseopts -D \
-    J:group V:group X:expl \
-    P:opts F:opts \
-    S:sopts r:sopts R:sopts qsopts 1sopts 2sopts nsopts \
-    M:match
+zparseopts -D -a sopts \
+    'J:=group' 'V:=group' 'X:=expl' 'P:=opts' 'F:=opts' \
+    S: r: R: q 1 2 n 'M:=match'
 
 sopts=( "$sopts[@]" "$opts[@]" )
 if (( $#match )); then
-  match="${match[1][3,-1]}"
+  match="${match[2]}"
 else
   match=''
 fi