1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-04 22:51:42 +02:00

24268: handle backslashed = in mailbox completion

This commit is contained in:
Peter Stephenson 2007-12-16 21:49:53 +00:00
parent d14b6ba4b8
commit 0963ce3a64
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,7 @@
2007-12-16 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 24268: Completion/Unix/Type/_mailboxes: handle backslashed =.
* 24264: Doc/Zsh/builtins.yo, Doc/Zsh/expn.yo, Src/params.c,
Src/subst.c, Src/zsh.h, Test/B02typeset.ztst: restrict the
effect of 24234 to expansion in the parameter substitution code

View file

@ -150,7 +150,7 @@ _mua_mailboxes() {
fi
;;
(*:mutt:*)
if compset -P '='; then
if compset -P '(|\\)='; then
mbox_names=( "${_mutt_cache[@]#[+=]}" "${(@)_mbox_cache#$~maildirectory/}" "${(@)_maildir_cache#$~maildirectory/}" "${(@)_mh_cache#$~maildirectory/}")
elif compset -P +; then
mbox_names=( "${_mutt_cache[@]#[+=]}" "${(@)_mbox_cache#$~maildirectory/}" "${(@)_maildir_cache#$~maildirectory/}" "${(@)_mh_cache#$~maildirectory/}")