about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Completion/Base/_arguments1
1 files changed, 1 insertions, 0 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments
index 12ff025a1..cb889cb10 100644
--- a/Completion/Base/_arguments
+++ b/Completion/Base/_arguments
@@ -499,6 +499,7 @@ while [[ cur -gt 0 ]]; do
 	line=( "$line[@]" "$ws[1]" )
 	[[ -n "$inopt" ]] && nargbeg=$(( beg - 1 ))
 	inopt=''
+        [[ -z "$args[nth]" && "$rest" = \*::* ]] && break
 	(( nth++ ))
       fi
     fi