From 04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 15 Apr 1999 18:20:19 +0000 Subject: zsh-3.1.5-pws-12 --- Completion/Base/_command_names | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Completion/Base/_command_names') 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 -- cgit 1.4.1