about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-08-30 10:12:27 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-08-30 10:12:27 +0000
commita17bcbc45e4b2b1f3bda883ae429062d58685081 (patch)
tree4e0451cb1070285fe283f29b5d006ae430d4567d
parent9929abb007c5ede75ef2fa29cc6477d6d4c24fd5 (diff)
downloadzsh-a17bcbc45e4b2b1f3bda883ae429062d58685081.tar.gz
zsh-a17bcbc45e4b2b1f3bda883ae429062d58685081.tar.xz
zsh-a17bcbc45e4b2b1f3bda883ae429062d58685081.zip
zsh-workers/7538
-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