diff options
Diffstat (limited to 'Completion/Unix/Command/_perforce')
| -rw-r--r-- | Completion/Unix/Command/_perforce | 39 |
1 files changed, 35 insertions, 4 deletions
diff --git a/Completion/Unix/Command/_perforce b/Completion/Unix/Command/_perforce index 49eb5faba..03765e94a 100644 --- a/Completion/Unix/Command/_perforce +++ b/Completion/Unix/Command/_perforce @@ -1134,12 +1134,21 @@ _perforce_hosts_ports() { (( $+functions[_perforce_jobs] )) || _perforce_jobs() { + # Optional argument is jobview for limiting jobs. local jline match mbegin mend max jobview local -a jl amax ajobview zstyle -s ":completion:${curcontext}:jobs" max max || max=20 - zstyle -s ":completion:${curcontext}:jobs" jobview jobview && - ajobview=(-e $jobview) + # Hack: if there is a job view, it is at the end. + # This is nasty, it's really unnecessarily difficult to + # pass arguments within completion functions... |
