about summary refs log tree commit diff
path: root/Completion/Base/Utility
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-06-13 11:05:51 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-06-13 11:05:51 +0000
commit71a9847d48bcbcc4348b89d5fa1673496201f416 (patch)
tree8122c3b3c2531d0dc8cc4d6a21c280b0f3afa00a /Completion/Base/Utility
parent1bb5d4d3850dd3cc58979baccefbba400662f8b7 (diff)
downloadzsh-71a9847d48bcbcc4348b89d5fa1673496201f416.tar.gz
zsh-71a9847d48bcbcc4348b89d5fa1673496201f416.tar.xz
zsh-71a9847d48bcbcc4348b89d5fa1673496201f416.zip
fix for comparguments (completing after single letter options that get their argument in the next word); make _values ignore some of the standard option it may get; make _mount use _dir_list in some places and improve that; `document' comparguments and compvalues with some comments in computil.c (14897)
Diffstat (limited to 'Completion/Base/Utility')
-rw-r--r--Completion/Base/Utility/_values12
1 files changed, 4 insertions, 8 deletions
diff --git a/Completion/Base/Utility/_values b/Completion/Base/Utility/_values
index 9a6913dad..bb0337911 100644
--- a/Completion/Base/Utility/_values
+++ b/Completion/Base/Utility/_values
@@ -1,15 +1,11 @@
 #autoload
 
-local subopts opt usecc
+local subopts opt usecc garbage
 
 subopts=()
-while [[ "$1" = -(O*|C) ]]; do
-  case "$1" in
-  -C) usecc=yes; shift ;;
-  -O) subopts=( "${(@P)2}" ); shift 2 ;;
-  *)  subopts=( "${(@P)${1[3,-1]}}" ); shift ;;
-  esac
-done
+zparseopts -D -E -a garbage C=usecc O:=subopts M: J: V: 1 2 n F: X:
+
+(( $#subopts )) && subopts=( "${(@P)subopts[2]}" )
 
 if compvalues -i "$@"; then