about summary refs log tree commit diff
path: root/Completion/User/_mailboxes
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-11 18:47:25 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-11 18:47:25 +0000
commita008690d67199d689b54972fa27a3398c1c74a7e (patch)
treed616ae8100fbbfeb92eda56e41de9cc26837a233 /Completion/User/_mailboxes
parent43a6d3508a93c6d193bc446bc879aaebe80b4e92 (diff)
downloadzsh-a008690d67199d689b54972fa27a3398c1c74a7e.tar.gz
zsh-a008690d67199d689b54972fa27a3398c1c74a7e.tar.xz
zsh-a008690d67199d689b54972fa27a3398c1c74a7e.zip
zsh-workers/9684
Diffstat (limited to 'Completion/User/_mailboxes')
-rw-r--r--Completion/User/_mailboxes6
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