about summary refs log tree commit diff
path: root/Completion/Unix/Command/_zip
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2014-08-14 00:00:39 +0200
committerOliver Kiddle <opk@zsh.org>2014-08-14 19:00:04 +0200
commit469ee6daef50d0736a38f646bd9eb659b7aad6d1 (patch)
treee77a3b919090d1d8433b4f06d6b41fcf6c8d387a /Completion/Unix/Command/_zip
parent5bcf00979fc5e01dd6fddff965aa871491f8b48b (diff)
downloadzsh-469ee6daef50d0736a38f646bd9eb659b7aad6d1.tar.gz
zsh-469ee6daef50d0736a38f646bd9eb659b7aad6d1.tar.xz
zsh-469ee6daef50d0736a38f646bd9eb659b7aad6d1.zip
32997: new utility function for separated lists
Diffstat (limited to 'Completion/Unix/Command/_zip')
-rw-r--r--Completion/Unix/Command/_zip5
1 files changed, 1 insertions, 4 deletions
diff --git a/Completion/Unix/Command/_zip b/Completion/Unix/Command/_zip
index a6baa9757..171daf01e 100644
--- a/Completion/Unix/Command/_zip
+++ b/Completion/Unix/Command/_zip
@@ -104,11 +104,8 @@ fi
 
 case $state in
   suffixes)
-    compset -P '*:'
-    compset -S ':*' || suf=":."
     suffixes=( *.*(N:e) )
-    _wanted suffixes expl suffixes \
-	compadd -S "$suf" -r ": \t" .$^suffixes && return
+    _sequence -s : _wanted -x suffixes expl suffix compadd - .$^suffixes && return
   ;;
   files)
     if [[ $service = zip ]] && (( ! ${+opt_args[-d]} )); then