[PATCH] _values: auto-remove argument separator

dana <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <[email protected]>
_values has auto-removal for the sequence separator (,) but not for the
argument one (=). i can't think of why that should be the case, so this
makes it happen for both

(removed the -q because it was superfluous/misleading. compadd -qrR
always have the precedence -R > -r > -q regardless of the order they're
given in)

dana


diff --git a/Completion/Base/Utility/_values b/Completion/Base/Utility/_values
index 5ed79e890..a8a14c73f 100644
--- a/Completion/Base/Utility/_values
+++ b/Completion/Base/Utility/_values
@@ -59,8 +59,8 @@ if compvalues -i "$keep[@]" "$@"; then
 
       _describe "$descr" \
         noargs "$sep[@]" -M 'r:|[_-]=* r:|=*' -- \
-        args -S "${argsep}" -M 'r:|[_-]=* r:|=*' -- \
-        opts -qS "${argsep}" -r "${argsep}${sep[2]} \\t\\n\\-" -M 'r:|[_-]=* r:|=*'
+        args -S "${argsep}" -r "${argsep}${sep[2]}" -M 'r:|[_-]=* r:|=*' -- \
+        opts -S "${argsep}" -r "${argsep}${sep[2]} \\t\\n\\-" -M 'r:|[_-]=* r:|=*'
 
       curcontext="$oldcontext"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.