diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-02-03 17:22:40 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-02-03 17:22:40 +0000 |
commit | ed41dafd3c79ebf2ce390ee9af54fe8bb21deb73 (patch) | |
tree | a45e062eb30e19f11c04c8bb7d30e36c1b77eb7e /Completion/Core/_complete | |
parent | 52a67fbbda1eda1e45d9aa6eed6c9650fbd6d0b1 (diff) | |
download | zsh-ed41dafd3c79ebf2ce390ee9af54fe8bb21deb73.tar.gz zsh-ed41dafd3c79ebf2ce390ee9af54fe8bb21deb73.tar.xz zsh-ed41dafd3c79ebf2ce390ee9af54fe8bb21deb73.zip |
zsh-workers/9546
Diffstat (limited to 'Completion/Core/_complete')
-rw-r--r-- | Completion/Core/_complete | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Completion/Core/_complete b/Completion/Core/_complete index 00c5e1e9a..d589c1707 100644 --- a/Completion/Core/_complete +++ b/Completion/Core/_complete @@ -4,16 +4,17 @@ # a normal completion function, but as one possible value for the # completer style. -local comp name curcontext="$curcontext" oldcontext +local comp name oldcontext +typeset -T curcontext="$curcontext" ccarray -[[ "$funcstack[2]" = _main_complete ]] && curcontext="${curcontext}:complete" +ccarray[2]=complete oldcontext="$curcontext" # If we have a user-supplied context name, use only that. if [[ -n "$compcontext" ]]; then - curcontext="${curcontext}:$compcontext" + ccarray[3]="$compcontext" comp="$_comps[$compcontext]" [[ -z "$comp" ]] || "$comp" @@ -25,7 +26,7 @@ fi comp="$_comps[-first-]" if [[ ! -z "$comp" ]]; then - curcontext="${curcontext}:-first-" + ccarray[3]=-first- "$comp" if [[ "$_compskip" = all ]]; then _compskip='' @@ -46,7 +47,7 @@ else local cname="-${compstate[context]:s/_/-/}-" - curcontext="${oldcontext}:$cname" + ccarray[3]="$cname" comp="$_comps[$cname]" |