From 7a0415cfd70a02b2280d27556c6c54cef1c86e1a Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 15 Apr 1999 18:18:42 +0000 Subject: zsh-3.1.5-pws-11 --- Completion/Builtins/_enable | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Completion/Builtins/_enable') diff --git a/Completion/Builtins/_enable b/Completion/Builtins/_enable index 22ff53ee7..111d1ae26 100644 --- a/Completion/Builtins/_enable +++ b/Completion/Builtins/_enable @@ -1,6 +1,8 @@ #defcomp enable -[[ -mcurrent -1 -*a* ]] && complist -da -[[ -mcurrent -1 -*f* ]] && complist -dF -[[ -mcurrent -1 -*r* ]] && complist -dw -[[ ! -mcurrent -1 -* ]] && complist -dB +local prev="$words[CURRENT-1]" + +[[ "$prev" = -*a* ]] && compgen -da +[[ "$prev" = -*f* ]] && compgen -dF +[[ "$prev" = -*r* ]] && compgen -dw +[[ "$prev" != -* ]] && compgen -dB -- cgit 1.4.1