about summary refs log tree commit diff
path: root/Completion/Unix/Type
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/Unix/Type
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/Unix/Type')
-rw-r--r--Completion/Unix/Type/_printers8
1 files changed, 5 insertions, 3 deletions
diff --git a/Completion/Unix/Type/_printers b/Completion/Unix/Type/_printers
index 1b42de5cb..03f950c9c 100644
--- a/Completion/Unix/Type/_printers
+++ b/Completion/Unix/Type/_printers
@@ -1,6 +1,6 @@
 #autoload
 
-local expl ret=1 list disp
+local expl ret=1 list disp sep
 
 if (( $+commands[lsallq] )); then
   # Use AIX's command to list print queues
@@ -8,6 +8,8 @@ if (( $+commands[lsallq] )); then
   return
 fi
 
+zstyle -s ":completion:${curcontext}:printers" list-separator sep || sep=--
+
 if (( ! $+_lp_cache )); then
   local file entry names i
 
@@ -42,7 +44,7 @@ if (( ! $+_lp_cache )); then
 fi
 
 if zstyle -T ":completion:${curcontext}:printers" verbose; then
-  zformat -a list ' -- ' "$_lp_cache[@]"
+  zformat -a list " $sep " "$_lp_cache[@]"
   disp=(-ld list)
 else
   disp=()
@@ -53,7 +55,7 @@ _wanted printers expl printer \
 (( $+_lp_alias_cache )) || return 1
 
 if zstyle -T ":completion:${curcontext}:printers" verbose; then
-  zformat -a list ' -- ' "$_lp_alias_cache[@]"
+  zformat -a list " $sep " "$_lp_alias_cache[@]"
   disp=(-ld list)
 else
   disp=()