From fd25b24df6b4f098944c4994195d3894a27a8208 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 31 May 2000 09:38:25 +0000 Subject: use compadd -[ak] (11549) --- Completion/Core/_wanted | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Completion/Core/_wanted') diff --git a/Completion/Core/_wanted b/Completion/Core/_wanted index 958f9e18e..3e25fdbbc 100644 --- a/Completion/Core/_wanted +++ b/Completion/Core/_wanted @@ -1,26 +1,26 @@ #autoload -local targs gopt=-J +local __targs __gopt=-J if [[ "$1" = -C?* ]]; then - targs=( -C "${1[3,-1]}" ) + __targs=( -C "${1[3,-1]}" ) shift elif [[ "$1" = -C ]]; then - targs=( -C "$2" ) + __targs=( -C "$2" ) shift 2 else - targs=() + __targs=() fi if [[ "$1" = -([12]|)[VJ] ]]; then - gopt="$1" + __gopt="$1" shift fi -_tags "$targs[@]" "$1" +_tags "$__targs[@]" "$1" while _tags; do - _all_labels "$gopt" "$@" && return 0 + _all_labels "$__gopt" "$@" && return 0 done return 1 -- cgit 1.4.1