diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-07-25 12:18:23 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-07-25 12:18:23 +0000 |
commit | c83d16f8ee5721de1da3e8449c30a31ca1372d28 (patch) | |
tree | af5c704f6d02ad081058ff0428abedbe180dbabf /Completion/Base/Utility | |
parent | e1708022d206dfe183bbce3d03c7e5e02abc3a59 (diff) | |
download | zsh-c83d16f8ee5721de1da3e8449c30a31ca1372d28.tar.gz zsh-c83d16f8ee5721de1da3e8449c30a31ca1372d28.tar.xz zsh-c83d16f8ee5721de1da3e8449c30a31ca1372d28.zip |
another fix for 15477 (separator strings); add list-separator style (15484)
Diffstat (limited to 'Completion/Base/Utility')
-rw-r--r-- | Completion/Base/Utility/_describe | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Base/Utility/_describe b/Completion/Base/Utility/_describe index 2783c25d1..bed75a318 100644 --- a/Completion/Base/Utility/_describe +++ b/Completion/Base/Utility/_describe @@ -23,12 +23,13 @@ fi zstyle -T ":completion:${curcontext}:$_type" verbose && _showd=yes +zstyle -s ":completion:${curcontext}:$_type" list-separator _sep || _sep=-- + if zstyle -T ":completion:${curcontext}:$_type" list-grouped; then local _argv _new _strs _mats _opts _i=2 _argv=( "$@" ) _grp=(-g) - _sep='-- ' _new=( "$1" ) shift @@ -68,7 +69,6 @@ if zstyle -T ":completion:${curcontext}:$_type" list-grouped; then set - "$_argv[@]" else _grp=() - _sep=' -- ' fi _descr="$1" @@ -83,7 +83,7 @@ while _tags; do while _next_label "$_type" _expl "$_descr"; do if [[ -n "$_showd" ]]; then - compdescribe -I "$_hide" "$_sep" _expl "$_grp[@]" "$@" + compdescribe -I "$_hide" "$_sep " _expl "$_grp[@]" "$@" else compdescribe -i "$_hide" "$@" fi |