1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-09 12:21:14 +02:00

unposted: _postfix_queue_id: Unbreak completion of short queue ids of held/active messages, broken in 39108.

This commit is contained in:
Daniel Shahaf 2016-09-02 05:48:24 +00:00
parent 8bb531990e
commit 972423629f
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
2016-09-02 Daniel Shahaf <d.s@daniel.shahaf.name>
* unposted: Completion/Unix/Command/_postfix: _postfix_queue_id:
Unbreak completion of short queue ids of held/active messages,
broken in 39108.
* 39154: Completion/Unix/Type/_files: -/ with list-dirs-first
resulted in a bad pattern, thus aborting completion partway.
@ -28,7 +32,7 @@
2016-08-30 Daniel Shahaf <d.s@daniel.shahaf.name>
* 39108: Completion/Unix/Command/_postfix: Support
* 39108 (tweaked): Completion/Unix/Command/_postfix: Support
$enable_long_queue_ids.
* 39110: Completion/Unix/Command/_postfix: Complete 'postconf'.

View file

@ -10,7 +10,7 @@ _postfix_queue_id() {
local -a lines=( ${(f)"$(_call_program mailq 'mailq')"} )
# $enable_long_queue_ids = no
compadd "$@" -- ${${(M)lines:#(#s)([0-9A-F]## )*}/(#s)(#b)([0-9A-F]##)*/$match[1]}
compadd "$@" -- ${${(M)lines:#(#s)([0-9A-F]##([*!]|) )*}/(#s)(#b)([0-9A-F]##)*/$match[1]}
# $enable_long_queue_ids = yes
compadd "$@" -- ${${${(M)lines:#(#s)[0-9bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ](#c10)z*}%% *}%[*!]}