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/_bindkey | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Completion/Builtins/_bindkey') diff --git a/Completion/Builtins/_bindkey b/Completion/Builtins/_bindkey index 8eddeb2a8..d3d019492 100644 --- a/Completion/Builtins/_bindkey +++ b/Completion/Builtins/_bindkey @@ -1,7 +1,7 @@ #defcomp bindkey -if [[ -mword 1 -*[DAN]* || -mcurrent -1 -*M ]]; then - complist -s '$(bindkey -l)' +if [[ "$words[2]" = -*[DAN]* || "$words[CURRENT-1] = -*M ]]; then + compgen -s '$(bindkey -l)' else - complist -b + compgen -b fi -- cgit 1.4.1