about summary refs log tree commit diff
path: root/Completion/Zsh/Command/_command
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Zsh/Command/_command')
-rw-r--r--Completion/Zsh/Command/_command10
1 files changed, 6 insertions, 4 deletions
diff --git a/Completion/Zsh/Command/_command b/Completion/Zsh/Command/_command
index b90ec933e..72d7b6e99 100644
--- a/Completion/Zsh/Command/_command
+++ b/Completion/Zsh/Command/_command
@@ -1,10 +1,12 @@
 #compdef command
 
+local ret
+
 if [[ CURRENT -ge 3 ]]; then
   compset -n 2
-  _normal
+  _normal && ret=0
 else
-  local expl
-
-  _wanted commands expl 'external command' compadd "$@" -k commands
+  _path_commands "$@" && ret=0
 fi
+
+return ret