diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-24 00:01:54 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-24 00:01:54 +0000 |
commit | 41fb4173bf31fedebb057b8ae8ba8e6f7149317b (patch) | |
tree | 405b61f2b0dca30eaca8bf30d145419e54aabbb9 /Completion/User/_pbm | |
parent | 993db7cf0267b4d9c7f8faaa40af8948ba26a2e2 (diff) | |
download | zsh-41fb4173bf31fedebb057b8ae8ba8e6f7149317b.tar.gz zsh-41fb4173bf31fedebb057b8ae8ba8e6f7149317b.tar.xz zsh-41fb4173bf31fedebb057b8ae8ba8e6f7149317b.zip |
zsh-workers/10214
Diffstat (limited to 'Completion/User/_pbm')
-rw-r--r-- | Completion/User/_pbm | 11 |
1 files changed, 4 insertions, 7 deletions
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 |