about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-17 15:16:28 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-17 15:16:28 +0000
commit7de85ba799849961dfa3ac73198394cfc75bc97d (patch)
treeb149f941b81ecc63fc59f83ee3bb5f719568fc3e
parenta0bcc5d324e83febc23ecbb17487001f96c32eeb (diff)
downloadzsh-7de85ba799849961dfa3ac73198394cfc75bc97d.tar.gz
zsh-7de85ba799849961dfa3ac73198394cfc75bc97d.tar.xz
zsh-7de85ba799849961dfa3ac73198394cfc75bc97d.zip
zsh-workers/7912
-rw-r--r--Completion/Base/_arguments6
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?