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/_fc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Completion/Builtins/_fc') diff --git a/Completion/Builtins/_fc b/Completion/Builtins/_fc index f0d2c03fd..f8cf4dde8 100644 --- a/Completion/Builtins/_fc +++ b/Completion/Builtins/_fc @@ -1,7 +1,9 @@ #defcomp fc -if [[ -mcurrent -1 -*e ]]; then - complist -c -elif [[ -mcurrent -1 -[ARWI]## ]]; then +local prev="$words[CURRENT-1]" + +if [[ "$prev" = -*e ]]; then + compgen -c +elif [[ "$prev" = -[ARWI]## ]]; then _files fi -- cgit 1.4.1