about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-01 09:35:50 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-01 09:35:50 +0000
commitff5d9509e216d7628347fc400e2ebe2cdbe32cb6 (patch)
tree1c47ec63628a776af8a61a6fa994ba259c7577fa
parentbc8a27a27753afea075b8ab30229fb99dd01d740 (diff)
downloadzsh-ff5d9509e216d7628347fc400e2ebe2cdbe32cb6.tar.gz
zsh-ff5d9509e216d7628347fc400e2ebe2cdbe32cb6.tar.xz
zsh-ff5d9509e216d7628347fc400e2ebe2cdbe32cb6.zip
zsh-workers/7596
-rw-r--r--Completion/Base/_arguments6
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments
index cd4b2f562..4faf70246 100644
--- a/Completion/Base/_arguments
+++ b/Completion/Base/_arguments
@@ -464,9 +464,9 @@ while [[ cur -gt 0 ]]; do
 	  # option, we skip over the first description only if there
 	  # is something after the option name on the line.
 
-	  if [[ ( -z "$sopts" && "$ws[1]" != "$tmp[1]" ) ||
-                ( -n "$sopts" && ( ( $tmp[1] = [-+]? && "$ws[1]" != "${tmp[1][1]}"${~soptseq}"${tmp[1][2]}" ) ||
-		  		   ( $tmp[1] != [-+]? && "$ws[1]" != "$tmp[1]" ) ) ) ]]; then
+	  if [[ ( -z "$sopts" && ( "$def" = :* || "$ws[1]" != "$tmp[1]" ) ) ||
+                ( -n "$sopts" && ( ( $tmp[1] = [-+]? && ( "$def" = :* || "$ws[1]" != "${tmp[1][1]}"${~soptseq}"${tmp[1][2]}" ) ) ||
+		  		   ( $tmp[1] != [-+]? && ( "$def" = :* || "$ws[1]" != "$tmp[1]" ) ) ) ) ]]; then
 	    if [[ "$def" = [^*]*[^\\]:*[^\\]:* ]]; then
               def="${def#?*[^\\]:*[^\\]:}"
 	      optbeg="$beg"