summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_xz2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_xz b/Completion/Unix/Command/_xz
index 333557e66..a4dfea1f5 100644
--- a/Completion/Unix/Command/_xz
+++ b/Completion/Unix/Command/_xz
@@ -61,7 +61,7 @@ esac
 case $state in
   files)
     (( $+opt_args[-z] || $+opt_args[--compress] )) && decompress=no
-    [[ -n $opt_args[(i)-([dtl]|-decompress|-test|-list)] ]] && unset decompress
+    [[ -n ${(k)opt_args[(i)decomp*]} ]] && unset decompress
     if [[ -z "$decompress" ]]; then
       _description files expl 'compressed file'
       _files "$expl[@]" -g '*.(xz|txz|lzma|tlz)(-.)' && return