diff options
| author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-17 15:16:28 +0000 |
|---|---|---|
| committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-17 15:16:28 +0000 |
| commit | 7de85ba799849961dfa3ac73198394cfc75bc97d (patch) | |
| tree | b149f941b81ecc63fc59f83ee3bb5f719568fc3e /Completion/Base/_arguments | |
| parent | zsh-workers/7917 (diff) | |
| download | zsh-7de85ba799849961dfa3ac73198394cfc75bc97d.tar zsh-7de85ba799849961dfa3ac73198394cfc75bc97d.tar.gz zsh-7de85ba799849961dfa3ac73198394cfc75bc97d.tar.bz2 zsh-7de85ba799849961dfa3ac73198394cfc75bc97d.tar.lz zsh-7de85ba799849961dfa3ac73198394cfc75bc97d.tar.xz zsh-7de85ba799849961dfa3ac73198394cfc75bc97d.tar.zst zsh-7de85ba799849961dfa3ac73198394cfc75bc97d.zip | |
zsh-workers/7912
Diffstat (limited to 'Completion/Base/_arguments')
| -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 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? |
