1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-22 16:20:23 +02:00

another fix for 15477 (separator strings); add list-separator style (15484)

This commit is contained in:
Sven Wischnowsky 2001-07-25 12:18:23 +00:00
parent e1708022d2
commit c83d16f8ee
9 changed files with 41 additions and 16 deletions

View file

@ -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=()