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/Command/_lscfg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Completion/AIX/Command/_lscfg') diff --git a/Completion/AIX/Command/_lscfg b/Completion/AIX/Command/_lscfg index 4667a0bd7..f9e8f15cd 100644 --- a/Completion/AIX/Command/_lscfg +++ b/Completion/AIX/Command/_lscfg @@ -1,6 +1,6 @@ #compdef lscfg -local state line expl curcontext="$curcontext" disp list devs +local state line expl curcontext="$curcontext" disp list devs sep _arguments -C -s \ '-l[display device information for named device]:device:->device' \ @@ -9,7 +9,8 @@ _arguments -C -s \ if [[ "$state" = device ]]; then devs=( ${${${${(f)"$(lscfg)"}[6,-1]:# *}##??}/ ##[^ ]# #/:} ) if zstyle -T ":completion:${curcontext}:devices" verbose; then - zformat -a list ' -- ' "$devs[@]" + zstyle -s ":completion:${curcontext}:devices" list-separator sep || sep=-- + zformat -a list " $sep " "$devs[@]" disp=(-ld list) else disp=() -- cgit 1.4.1