From 48df213153610e302b94c866f869a5861e359349 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 26 Feb 2003 16:35:55 +0000 Subject: 18299: allow _next_tags to work with nested tag loops --- Completion/Base/Core/_all_labels | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Completion/Base/Core/_all_labels') diff --git a/Completion/Base/Core/_all_labels b/Completion/Base/Core/_all_labels index 9dda58131..e607d639d 100644 --- a/Completion/Base/Core/_all_labels +++ b/Completion/Base/Core/_all_labels @@ -24,6 +24,8 @@ else fi while comptags "-A$__prev" "$1" curtag __spec; do + (( $#funcstack > _tags_level )) && _comp_tags="${_comp_tags% * }" + _tags_level=$#funcstack _comp_tags="$_comp_tags $__spec " if [[ "$curtag" = *[^\\]:* ]]; then zformat -f __descr "${curtag#*:}" "d:$3" -- cgit 1.4.1