diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-01 09:35:50 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-01 09:35:50 +0000 |
commit | ff5d9509e216d7628347fc400e2ebe2cdbe32cb6 (patch) | |
tree | 1c47ec63628a776af8a61a6fa994ba259c7577fa | |
parent | bc8a27a27753afea075b8ab30229fb99dd01d740 (diff) | |
download | zsh-ff5d9509e216d7628347fc400e2ebe2cdbe32cb6.tar.gz zsh-ff5d9509e216d7628347fc400e2ebe2cdbe32cb6.tar.xz zsh-ff5d9509e216d7628347fc400e2ebe2cdbe32cb6.zip |
zsh-workers/7596
-rw-r--r-- | Completion/Base/_arguments | 6 |
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" |