From 469ee6daef50d0736a38f646bd9eb659b7aad6d1 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 14 Aug 2014 00:00:39 +0200 Subject: 32997: new utility function for separated lists --- Completion/Unix/Command/_zip | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Completion/Unix/Command/_zip') 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 -- cgit v1.2.3