From 1df4b6620bde483aaf38521f7675547d42b62c42 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 25 Jul 2001 12:36:34 +0000 Subject: some more places where list-separator should be used (15485) --- Completion/Unix/Command/_lzop | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Completion/Unix/Command/_lzop') diff --git a/Completion/Unix/Command/_lzop b/Completion/Unix/Command/_lzop index fa8d46c58..bb918fd30 100644 --- a/Completion/Unix/Command/_lzop +++ b/Completion/Unix/Command/_lzop @@ -1,6 +1,6 @@ #compdef lzop -local expl state line decompress disp curcontext="$curcontext" +local expl state line decompress disp curcontext="$curcontext" sep typeset -A opt_args _arguments -C -s \ @@ -91,12 +91,13 @@ case "$state" in fi ;; flags) + zstyle -s ":completion:${curcontext}:flags" list-separator sep || sep=-- disp=( \ - "F -- Append a \`*' for executable files" \ - "G -- Inhibit display of group information" \ - "Q -- Enclose file names in double quotes" ) - disp=( ${disp[@]%[Z$PREFIX] -*} ) + "F $sep Append a \`*' for executable files" \ + "G $sep Inhibit display of group information" \ + "Q $sep Enclose file names in double quotes" ) + disp=( ${disp[@]:#[Z$PREFIX]*} ) compset -P '[FGQ]*' - compadd -d disp - ${disp[@]% -*} + compadd -d disp - ${disp[@]%% *} ;; esac -- cgit 1.4.1