diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-15 18:24:09 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-15 18:24:09 +0000 |
commit | 6c1fb551ba0973c9a86e1ea479d553d66c6bf6b7 (patch) | |
tree | ec80a986c49f2da21eed83b7097f0f4e99f57e3f /Completion/User/_mh | |
parent | 640a840d2e94f0fc245ef8632050c37af23c6b94 (diff) | |
download | zsh-6c1fb551ba0973c9a86e1ea479d553d66c6bf6b7.tar.gz zsh-6c1fb551ba0973c9a86e1ea479d553d66c6bf6b7.tar.xz zsh-6c1fb551ba0973c9a86e1ea479d553d66c6bf6b7.zip |
zsh-3.1.5-pws-14 zsh-3.1.5-pws-14
Diffstat (limited to 'Completion/User/_mh')
-rw-r--r-- | Completion/User/_mh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/User/_mh b/Completion/User/_mh index c6c018220..ab78468d8 100644 --- a/Completion/User/_mh +++ b/Completion/User/_mh @@ -13,7 +13,7 @@ local prev="$words[CURRENT-1]" # To be on the safe side, check this exists and if not, get it anyway. [[ -d $mymhdir ]] || mymhdir=$(mhpath +) -if [[ -iprefix - ]]; then +if compset -P 1 -; then # get list of options, which MH commands can generate themselves # awk is just too icky to use for this, sorry. send me one if # you come up with it. @@ -23,7 +23,7 @@ if [[ -iprefix - ]]; then print $n =~ s/^\[([a-z]+)\]// ? "$n\n$1$n\n" : "$n\n"; }') return -elif [[ -iprefix '+' || -iprefix '@' || "$prev" = -draftfolder ]]; then +elif compset -P 1 '[+@] || [ "$prev" = -draftfolder ]]; then # Complete folder names. local mhpath |