about summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-07-25 12:18:23 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-07-25 12:18:23 +0000
commitc83d16f8ee5721de1da3e8449c30a31ca1372d28 (patch)
treeaf5c704f6d02ad081058ff0428abedbe180dbabf /Completion/Base
parente1708022d206dfe183bbce3d03c7e5e02abc3a59 (diff)
downloadzsh-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')
-rw-r--r--Completion/Base/Utility/_describe6
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