about summary refs log tree commit diff
path: root/Completion/Unix/Command/_lzop
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-07-25 12:36:34 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-07-25 12:36:34 +0000
commit1df4b6620bde483aaf38521f7675547d42b62c42 (patch)
treeb637ff44a0ffa29d78557513be2824928081900b /Completion/Unix/Command/_lzop
parentc83d16f8ee5721de1da3e8449c30a31ca1372d28 (diff)
downloadzsh-1df4b6620bde483aaf38521f7675547d42b62c42.tar.gz
zsh-1df4b6620bde483aaf38521f7675547d42b62c42.tar.xz
zsh-1df4b6620bde483aaf38521f7675547d42b62c42.zip
some more places where list-separator should be used (15485)
Diffstat (limited to 'Completion/Unix/Command/_lzop')
-rw-r--r--Completion/Unix/Command/_lzop13
1 files changed, 7 insertions, 6 deletions
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