From 41fb4173bf31fedebb057b8ae8ba8e6f7149317b Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 24 Mar 2000 00:01:54 +0000 Subject: zsh-workers/10214 --- Completion/User/_pbm | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'Completion/User/_pbm') diff --git a/Completion/User/_pbm b/Completion/User/_pbm index 1f740ad31..0ff62c548 100644 --- a/Completion/User/_pbm +++ b/Completion/User/_pbm @@ -17,11 +17,8 @@ else fi if [[ $# -ne 0 || $+_in_pbm -ne 0 ]]; then - if (( ! $# )); then - _description files expl 'picture file' - set -- "$expl[@]" - fi - _path_files "$@" -g "$pat" || _files "$@" -g '*.(#i)p[bgp]m' + _wanted files expl 'picture file' _path_files "$@" -g "$pat" - || + _files "$@" "$expl[@]" -g '*.(#i)p[bgp]m' return fi @@ -772,6 +769,6 @@ zeisstopnm) ;; *) - _description files expl 'picture file' - _path_files "$expl[@]" -g "$pat" || _files "$expl[@]" -g '*.(#i)p[bgp]m' + _wanted files expl 'picture file' _path_files -g "$pat" || + _files "$expl[@]" -g '*.(#i)p[bgp]m' esac -- cgit 1.4.1