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/Unix/Type/_printers | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Completion/Unix/Type/_printers') 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=() -- cgit 1.4.1