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/_command3
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Builtins/_command b/Completion/Builtins/_command
index 47eb0d667..4facceb12 100644
--- a/Completion/Builtins/_command
+++ b/Completion/Builtins/_command
@@ -1,6 +1,7 @@
 #defcomp command
 
-if [[ -position 3 -1 ]]; then
+if [[ CURRENT -ge 3 ]]; then
+  compset -n 2
   _normal
 else
   compgen -em