about summary refs log tree commit diff
path: root/Completion/User/_mailboxes
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/User/_mailboxes')
-rw-r--r--Completion/User/_mailboxes3
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/User/_mailboxes b/Completion/User/_mailboxes
index e2b4b5289..fb00719a3 100644
--- a/Completion/User/_mailboxes
+++ b/Completion/User/_mailboxes
@@ -65,7 +65,8 @@ _mailbox_cache () {
 
 
   [[ -f ${~muttrc:-.} ]] &&
-    _mutt_cache=( ${$(grep mailboxes ${~muttrc})[2,-1]} )
+    _mutt_cache=( ${${(M)${(f)"$(<${~muttrc})"}:#mailboxes *}#mailboxes *} )
+
 
   _mbox_cache=( ${~maildirectory}/*(^/) )
   _pine_cache=( ${~pinedirectory}/**/*(.) )