diff options
| author | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-15 18:20:19 +0000 |
|---|---|---|
| committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-15 18:20:19 +0000 |
| commit | 04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8 (patch) | |
| tree | 2215f99f95d55660fc939a029bf965c454d080b5 /Completion/Base/_command_names | |
| parent | zsh-3.1.5-pws-11 (diff) | |
| download | zsh-04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8.tar zsh-04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8.tar.gz zsh-04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8.tar.bz2 zsh-04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8.tar.lz zsh-04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8.tar.xz zsh-04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8.tar.zst zsh-04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8.zip | |
zsh-3.1.5-pws-12zsh-3.1.5-pws-12
Diffstat (limited to 'Completion/Base/_command_names')
| -rw-r--r-- | Completion/Base/_command_names | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Completion/Base/_command_names b/Completion/Base/_command_names index eab314dfa..f21af674c 100644 --- a/Completion/Base/_command_names +++ b/Completion/Base/_command_names @@ -1,7 +1,11 @@ #defcomp -command- -local nm=$compstate[nmatches] +local nm=$compstate[nmatches] ret=1 -compgen -c +compgen -c && ret=0 -[[ nm -eq compstate[nmatches] ]] && _path_files -/g "*(*)" +if [[ nm -eq compstate[nmatches] ]]; then + _path_files -/g "*(*)" +else + return ret +fi |
