diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-17 09:22:42 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-17 09:22:42 +0000 |
commit | 665b54c9e4f145c5fe2f448f96270669b40eb6cf (patch) | |
tree | 1d6d892cda5127a3aaace3a8e1e667f782642a3f /Completion/Base | |
parent | 1f9bd5bcebff8f47fcc2397cd665d62765608968 (diff) | |
download | zsh-665b54c9e4f145c5fe2f448f96270669b40eb6cf.tar.gz zsh-665b54c9e4f145c5fe2f448f96270669b40eb6cf.tar.xz zsh-665b54c9e4f145c5fe2f448f96270669b40eb6cf.zip |
zsh-workers/7902
Diffstat (limited to 'Completion/Base')
-rw-r--r-- | Completion/Base/_arguments | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index e8756ea14..7c9e72c1f 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -217,6 +217,10 @@ if [[ "$*" != "$_args_cache_descr" ]]; then if [[ "$1" = *\[*\](|:*) ]]; then descr="${${1#*\[}%%\]*}" 1="${1/\[$descr\]}" + elif [[ -n "$compconfig[autodescribe_options]" && + "$1" = [-+][^:]##:[^:]#[^\\]:[^:]# ]]; then + descr="${${(M)${1#*:}#*[^\\]:}[1,-2]}" + descr="${compconfig[autodescribe_options]//\\%d/$descr}" fi # Description for both the `-foo' and `+foo' form? |