From bccfe3b1576c2a1eb1219ec3894d89998249fbcf Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 15 Dec 1999 02:28:14 +0000 Subject: zsh-workers/9048 --- Completion/User/_mh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Completion/User/_mh') diff --git a/Completion/User/_mh b/Completion/User/_mh index bdd4c74b3..f02aee9b5 100644 --- a/Completion/User/_mh +++ b/Completion/User/_mh @@ -35,9 +35,7 @@ elif compset -P 1 '[+@]' || [[ "$prev" = -draftfolder ]]; then mhpath=$(mhpath) fi - # painless, or what? - _description files expl 'MH folder' - _path_files "$expl[@]" -W mhpath -/ + _wanted files expl 'MH folder' && _path_files "$expl[@]" -W mhpath -/ elif [[ "$prev" = -(editor|(whatnow|rmm|show|more)proc) ]]; then _command_names -e elif [[ "$prev" = -file ]]; then @@ -50,8 +48,8 @@ elif [[ "$prev" = -(form|audit|filter) ]]; then [[ -d $mhlib ]] || { mhlib=$(mhparam mhlproc); mhlib=$mhlib:h; } mhfpath=($mymhdir $mhlib) - _description files expl 'MH template file' - _files "$expl[@]" -W mhfpath -g '*(.)' + _wanted files expl 'MH template file' && + _files "$expl[@]" -W mhfpath -g '*(.)' elif [[ "$prev" = -(no|)cc ]]; then _wanted -C "$prev" values expl 'CC address' && compadd "$expl[@]" all to cc me -- cgit 1.4.1