diff options
| author | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-15 18:18:42 +0000 |
|---|---|---|
| committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-15 18:18:42 +0000 |
| commit | 7a0415cfd70a02b2280d27556c6c54cef1c86e1a (patch) | |
| tree | 37a88a1c4611ee37f2a3209873fc9a34a2624587 /Completion/Builtins/_bindkey | |
| parent | zsh-3.1.5-pws-10 (diff) | |
| download | zsh-7a0415cfd70a02b2280d27556c6c54cef1c86e1a.tar zsh-7a0415cfd70a02b2280d27556c6c54cef1c86e1a.tar.gz zsh-7a0415cfd70a02b2280d27556c6c54cef1c86e1a.tar.bz2 zsh-7a0415cfd70a02b2280d27556c6c54cef1c86e1a.tar.lz zsh-7a0415cfd70a02b2280d27556c6c54cef1c86e1a.tar.xz zsh-7a0415cfd70a02b2280d27556c6c54cef1c86e1a.tar.zst zsh-7a0415cfd70a02b2280d27556c6c54cef1c86e1a.zip | |
zsh-3.1.5-pws-11zsh-3.1.5-pws-11
Diffstat (limited to 'Completion/Builtins/_bindkey')
| -rw-r--r-- | Completion/Builtins/_bindkey | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
