mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
41479: _xz: Complete compressed, rather than uncompressed, files after -d.
This commit is contained in:
parent
17a6eb655d
commit
623be7199e
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
2017-08-02 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 41479: Completion/Unix/Command/_xz: Complete compressed,
|
||||
rather than uncompressed, files after -d.
|
||||
|
||||
* 41475: Completion/Unix/Command/_git: Complete files after
|
||||
'reset' when there are no commits, when the 'verbose' style
|
||||
is set.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue