From 7de85ba799849961dfa3ac73198394cfc75bc97d Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 17 Sep 1999 15:16:28 +0000 Subject: zsh-workers/7912 --- Completion/Base/_arguments | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Completion') diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index 7c9e72c1f..173a23a73 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -126,7 +126,7 @@ if [[ "$*" != "$_args_cache_descr" ]]; then # Then we walk through the descriptions plus a few builtin ones. set -- "$@" '*=FILE*:file:_files' \ - '*=(DIR|PATH)*:directory:_files -/' '*:unknown:' + '*=(DIR|PATH)*:directory:_files -/' '*: :' while (( $# )); do @@ -219,8 +219,8 @@ if [[ "$*" != "$_args_cache_descr" ]]; then 1="${1/\[$descr\]}" elif [[ -n "$compconfig[autodescribe_options]" && "$1" = [-+][^:]##:[^:]#[^\\]:[^:]# ]]; then - descr="${${(M)${1#*:}#*[^\\]:}[1,-2]}" - descr="${compconfig[autodescribe_options]//\\%d/$descr}" + descr="${${${${(M)${1#*:}#*[^\\]:}[1,-2]}## #}%% #}" + [[ -n "$descr" ]] && descr="${compconfig[autodescribe_options]//\\%d/$descr}" fi # Description for both the `-foo' and `+foo' form? -- cgit 1.4.1