about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-02 05:48:24 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-02 19:20:56 +0000
commit972423629f115b710c385cff0daa60182e5f33e6 (patch)
tree9b7ceeac9be14fa5acfeb4c10a6d4af481203571
parent8bb531990e99b6f71f33007deae41ada6d6ddaf0 (diff)
downloadzsh-972423629f115b710c385cff0daa60182e5f33e6.tar.gz
zsh-972423629f115b710c385cff0daa60182e5f33e6.tar.xz
zsh-972423629f115b710c385cff0daa60182e5f33e6.zip
unposted: _postfix_queue_id: Unbreak completion of short queue ids of held/active messages, broken in 39108.
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Unix/Command/_postfix2
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 989d16e84..0b6d6b3de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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'.
diff --git a/Completion/Unix/Command/_postfix b/Completion/Unix/Command/_postfix
index ab9518212..528034ef8 100644
--- a/Completion/Unix/Command/_postfix
+++ b/Completion/Unix/Command/_postfix
@@ -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*}%% *}%[*!]}