about summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2021-10-26 18:35:36 +0200
committerOliver Kiddle <opk@zsh.org>2021-10-26 18:35:36 +0200
commit4e9d0075f438c4404b29ad6901f6ed6aa4d0fdc6 (patch)
treec3d4ef7aa76460795ecada6d284af72aac4d9242 /Completion/Base
parent8764cba90b13238d0d4bf62383cab6039508c7cf (diff)
downloadzsh-4e9d0075f438c4404b29ad6901f6ed6aa4d0fdc6.tar.gz
zsh-4e9d0075f438c4404b29ad6901f6ed6aa4d0fdc6.tar.xz
zsh-4e9d0075f438c4404b29ad6901f6ed6aa4d0fdc6.zip
49519: quote completed options as needed and remove the now superfluous quotes from option specifications
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/Utility/_arguments10
1 files changed, 5 insertions, 5 deletions
diff --git a/Completion/Base/Utility/_arguments b/Completion/Base/Utility/_arguments
index cab7c929e..5ff34ff47 100644
--- a/Completion/Base/Utility/_arguments
+++ b/Completion/Base/Utility/_arguments
@@ -513,8 +513,8 @@ if (( $# )) && comparguments -i "$autod" "$singopt[@]" "$@"; then
 	    tmp2=( "${PREFIX}${(@M)^${(@)${(@)tmp1%%:*}#[-+]}:#?}" )
 
             _describe -O option \
-                      tmp1 tmp2 -Q -S '' -- \
-		      tmp3 -Q
+                tmp1 tmp2 -S '' -- \
+                tmp3
 
             [[ -n "$optarg" && "$single" = next && nm -eq $compstate[nmatches] ]] &&
                 _all_labels options expl option \
@@ -525,9 +525,9 @@ if (( $# )) && comparguments -i "$autod" "$singopt[@]" "$@"; then
         else
           next+=( "$odirect[@]" )
           _describe -O option \
-                    next -Q -M "$matcher" -- \
-                    direct -QS '' -M "$matcher" -- \
-                    equal -QqS= -M "$matcher"
+              next -M "$matcher" -- \
+              direct -S '' -M "$matcher" -- \
+              equal -qS= -M "$matcher"
         fi
 	PREFIX="$prevpre"
 	IPREFIX="$previpre"