* PATCH: quoting colons
@ 2001-03-23 10:37 Sven Wischnowsky
0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 2001-03-23 10:37 UTC (permalink / raw)
To: zsh-workers
Two places where we should check if the colon is quoted, otherwise an
_arguments spec like `-foo\:-[...]:..:(...)' yielded a description of `-1'.
Bye
Sven
Index: Completion/Core/_all_labels
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_all_labels,v
retrieving revision 1.5
diff -u -r1.5 _all_labels
--- Completion/Core/_all_labels 2000/05/31 09:38:26 1.5
+++ Completion/Core/_all_labels 2001/03/23 10:35:15
@@ -27,7 +27,7 @@
while comptags "-A$__prev" "$1" curtag __spec; do
_comp_tags="$_comp_tags $__spec "
- if [[ "$curtag" = *:* ]]; then
+ if [[ "$curtag" = *[^\\]:* ]]; then
zformat -f __descr "${curtag#*:}" "d:$3"
_description "$__gopt" "${curtag%:*}" "$2" "$__descr"
curtag="${curtag%:*}"
Index: Completion/Core/_next_label
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_next_label,v
retrieving revision 1.5
diff -u -r1.5 _next_label
--- Completion/Core/_next_label 2000/05/31 09:38:26 1.5
+++ Completion/Core/_next_label 2001/03/23 10:35:15
@@ -9,7 +9,7 @@
if comptags -A "$1" curtag __spec; then
_comp_tags="$_comp_tags $__spec "
- if [[ "$curtag" = *:* ]]; then
+ if [[ "$curtag" = *[^\\]:* ]]; then
zformat -f __descr "${curtag#*:}" "d:$3"
_description "$__gopt" "${curtag%:*}" "$2" "$__descr"
curtag="${curtag%:*}"
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-03-23 10:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-23 10:37 PATCH: quoting colons Sven Wischnowsky
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).