about summary refs log tree commit diff
path: root/Completion/Builtins/_command
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Builtins/_command')
-rw-r--r--Completion/Builtins/_command6
1 files changed, 2 insertions, 4 deletions
diff --git a/Completion/Builtins/_command b/Completion/Builtins/_command
index 23995dbbe..1cfa6add9 100644
--- a/Completion/Builtins/_command
+++ b/Completion/Builtins/_command
@@ -6,8 +6,6 @@ if [[ CURRENT -ge 3 ]]; then
 else
   local expl
 
-  _tags any:command commands || return 1
-
-  _description expl 'external command'
-  compadd "$expl[@]" "$@" - "${(k@)commands}"
+  _wanted commands expl 'external command' &&
+      compadd "$expl[@]" "$@" - "${(k@)commands}"
 fi