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/AIX/Type/_logical_volumes | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Completion/AIX/Type') diff --git a/Completion/AIX/Type/_logical_volumes b/Completion/AIX/Type/_logical_volumes index 53949fab2..1dd351360 100644 --- a/Completion/AIX/Type/_logical_volumes +++ b/Completion/AIX/Type/_logical_volumes @@ -1,11 +1,12 @@ #autoload -local expl list names disp +local expl list names disp sep list=( $(lsvg -l $(lsvg)|sed -e '2d'|awk '/[^:]* / {if ( $7 != "N/A" ) print $1 ":" $7; else print $1}' ) ) names=(${list%%:*}) -if zstyle -T ":completion:${curcontext}" verbose; then - zformat -a list ' -- ' $list +if zstyle -T ":completion:${curcontext}:" verbose; then + zstyle -s ":completion:${curcontext}:" list-separator sep || sep=-- + zformat -a list " $sep " $list disp=(-d list) else disp=() -- cgit 1.4.1