diff options
Diffstat (limited to 'Completion/User')
-rw-r--r-- | Completion/User/_mailboxes | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Completion/User/_mailboxes b/Completion/User/_mailboxes index 97628ef9a..a0c95859d 100644 --- a/Completion/User/_mailboxes +++ b/Completion/User/_mailboxes @@ -38,5 +38,9 @@ if (( ! $+_mailbox_cache )) then _mailbox_cache=($_mailbox_cache $mboxes $maildirboxes $MHboxes) fi -_wanted files expl 'mailbox specification' && +if _wanted files expl 'mailbox specification'; then + local opre=$PREFIX + [[ $PREFIX = +* ]] && PREFIX="$~maildirectory/${PREFIX#+}" compadd "$@" "$expl[@]" - "$_mailbox_cache[@]" + PREFIX=$opre +fi |