diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-06-08 09:25:39 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-06-08 09:25:39 +0000 |
commit | 805381040dd69dd02b78423d2d71913b33f3cc33 (patch) | |
tree | 1fa89ee643e8e577a2f79e76e3d6cafc93256ca2 /Completion/Core/_complete | |
parent | f42e3fa8e6152e145251e8f16f4c61c23dec1f59 (diff) | |
download | zsh-805381040dd69dd02b78423d2d71913b33f3cc33.tar.gz zsh-805381040dd69dd02b78423d2d71913b33f3cc33.tar.xz zsh-805381040dd69dd02b78423d2d71913b33f3cc33.zip |
zsh-3.1.5-pws-21 zsh-3.1.5-pws-21
Diffstat (limited to 'Completion/Core/_complete')
-rw-r--r-- | Completion/Core/_complete | 10 |
1 files changed, 10 insertions, 0 deletions
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 |