From c83d16f8ee5721de1da3e8449c30a31ca1372d28 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 25 Jul 2001 12:18:23 +0000 Subject: another fix for 15477 (separator strings); add list-separator style (15484) --- Completion/Base/Utility/_describe | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Completion/Base') 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 -- cgit 1.4.1