From 665b54c9e4f145c5fe2f448f96270669b40eb6cf Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 17 Sep 1999 09:22:42 +0000 Subject: zsh-workers/7902 --- Completion/Base/_arguments | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Completion') 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? -- cgit 1.4.1