diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-15 18:20:19 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-15 18:20:19 +0000 |
commit | 04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8 (patch) | |
tree | 2215f99f95d55660fc939a029bf965c454d080b5 /Completion/User/_mh | |
parent | 7a0415cfd70a02b2280d27556c6c54cef1c86e1a (diff) | |
download | zsh-04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8.tar.gz zsh-04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8.tar.xz zsh-04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8.zip |
zsh-3.1.5-pws-12 zsh-3.1.5-pws-12
Diffstat (limited to 'Completion/User/_mh')
-rw-r--r-- | Completion/User/_mh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Completion/User/_mh b/Completion/User/_mh index 7e8575123..c6c018220 100644 --- a/Completion/User/_mh +++ b/Completion/User/_mh @@ -4,6 +4,7 @@ # Alter the following two to your own mh directory and the directory # where standard mh library files live. (It works anyway, but this # will save a little time.) + local mymhdir=~/Mail local mhlib=/usr/lib/mh @@ -25,6 +26,7 @@ if [[ -iprefix - ]]; then elif [[ -iprefix '+' || -iprefix '@' || "$prev" = -draftfolder ]]; then # Complete folder names. local mhpath + if [[ $IPREFIX != '@' ]]; then [[ $IPREFIX = '+' ]] || IPREFIX=+ mhpath=$mymhdir @@ -53,7 +55,8 @@ elif [[ "$prev" = -[rw]cache ]]; then compadd public private never ask else # Generate sequences. - local foldnam folddir f + local foldnam folddir f ret + for f in $argv; do [[ $f = [@+]* ]] && foldnam=$f done @@ -66,7 +69,10 @@ else # leaving foldnam empty works here fi - compgen -s '$(mark $foldnam 2>/dev/null | awk -F: '\''{ print $1 }'\'')' - compadd reply next cur prev first last all unseen - compgen -W folddir -g '<->' + compgen -s '$(mark $foldnam 2>/dev/null | awk -F: '\''{ print $1 }'\'')' && + ret=0 + compadd reply next cur prev first last all unseen && ret=0 + compgen -W folddir -g '<->' && ret=0 + + return ret fi |