diff options
Diffstat (limited to 'Completion/User/_mailboxes')
-rw-r--r-- | Completion/User/_mailboxes | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/User/_mailboxes b/Completion/User/_mailboxes index 784bc4e6e..369814526 100644 --- a/Completion/User/_mailboxes +++ b/Completion/User/_mailboxes @@ -63,6 +63,7 @@ _mailbox_cache () { setopt localoptions nullglob + [[ -f ${~muttrc:-.} ]] && _mutt_cache=( ${$(grep mailboxes ${~muttrc})[2,-1]} ) @@ -76,11 +77,11 @@ _mailbox_cache () { shift dirboxes if [[ -d "$i/cur" ]]; then _maildir_cache=( "${_maildir_cache[@]}" "$i" ) - elif j=( $i/<1-> ) && [[ -n "$j" ]]; then + elif j=( "$i"/<1-> ) && [[ -n "$j" ]]; then _mh_cache=( "${_mh_cache[@]}" "$i" ) else _mbox_cache=( "${_mbox_cache[@]}" "$i"/*(.) ) - dirboxes=( $dirboxes $i/*(/) ) + dirboxes=( $dirboxes "$i"/*(/) ) fi done |