From 805381040dd69dd02b78423d2d71913b33f3cc33 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 8 Jun 1999 09:25:39 +0000 Subject: zsh-3.1.5-pws-21 --- Completion/Core/_complete | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Completion/Core/_complete') diff --git a/Completion/Core/_complete b/Completion/Core/_complete index 0f4d5ff4b..86ccc8c67 100644 --- a/Completion/Core/_complete +++ b/Completion/Core/_complete @@ -6,6 +6,15 @@ local comp name +# If we have a user-supplied context name, use only that. + +if [[ -n "$compcontext" ]]; then + comp="$_comps[$compcontext]" + [[ -z "$comp" ]] || "$comp" + + return +fi + # An entry for `-first-' is the replacement for `compctl -T' # Completion functions may set `_compskip' to any value to make the # main loops stop calling other completion functions. @@ -20,6 +29,7 @@ if [[ ! -z "$comp" ]]; then fi fi + # For arguments and command names we use the `_normal' function. if [[ "$compstate[context]" = command ]]; then -- cgit 1.4.1