From a78c8b50a05efc0bc8b4cded184099b962ea6bbc Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Fri, 23 Mar 2001 10:39:04 +0000 Subject: test if the colon is quoted (13725) --- ChangeLog | 3 +++ Completion/Core/_all_labels | 2 +- Completion/Core/_next_label | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 64641e1b1..f1e8e0b05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2001-03-23 Sven Wischnowsky + * 13725: Completion/Core/_all_labels, + Completion/Core/_next_label: test if the colon is quoted + * 13724: Completion/Core/_path_files: fixlet, complicated match specs could result in incorrect words being used as possible path expansions diff --git a/Completion/Core/_all_labels b/Completion/Core/_all_labels index cdb89e7fa..8665f5bf3 100644 --- a/Completion/Core/_all_labels +++ b/Completion/Core/_all_labels @@ -27,7 +27,7 @@ fi 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%:*}" diff --git a/Completion/Core/_next_label b/Completion/Core/_next_label index ca40d9a33..48845229a 100644 --- a/Completion/Core/_next_label +++ b/Completion/Core/_next_label @@ -9,7 +9,7 @@ fi 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%:*}" -- cgit v1.3.1