summaryrefslogtreecommitdiffstats
path: root/Completion/Core/_next_label
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Core/_next_label')
-rw-r--r--Completion/Core/_next_label14
1 files changed, 7 insertions, 7 deletions
diff --git a/Completion/Core/_next_label b/Completion/Core/_next_label
index 95569df3b..ca40d9a33 100644
--- a/Completion/Core/_next_label
+++ b/Completion/Core/_next_label
@@ -1,21 +1,21 @@
#autoload
-local gopt=-J descr spec
+local __gopt=-J __descr __spec
if [[ "$1" = -([12]|)[VJ] ]]; then
- gopt="$1"
+ __gopt="$1"
shift
fi
-if comptags -A "$1" curtag spec; then
- _comp_tags="$_comp_tags $spec "
+if comptags -A "$1" curtag __spec; then
+ _comp_tags="$_comp_tags $__spec "
if [[ "$curtag" = *:* ]]; then
- zformat -f descr "${curtag#*:}" "d:$3"
- _description "$gopt" "${curtag%:*}" "$2" "$descr"
+ zformat -f __descr "${curtag#*:}" "d:$3"
+ _description "$__gopt" "${curtag%:*}" "$2" "$__descr"
curtag="${curtag%:*}"
set -A $2 "${(P@)2}" "${(@)argv[4,-1]}"
else
- _description "$gopt" "$curtag" "$2" "$3"
+ _description "$__gopt" "$curtag" "$2" "$3"
set -A $2 "${(@)argv[4,-1]}" "${(P@)2}"
fi