mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-28 15:01:21 +02:00
unposted: tweak job completion in _perforce
This commit is contained in:
parent
a9c4bdca9b
commit
3292f9ec1f
@ -1,3 +1,9 @@
|
||||
2006-10-27 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* unposted: Completion/Unix/Command/_perforce: completion
|
||||
of jobs selected from a jobview (e.g. after p4 fix -d -c <change>)
|
||||
was broken.
|
||||
|
||||
2006-10-27 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 22914: Completion/Unix/Command/_cdrecord: add wodim to compdef
|
||||
|
@ -1219,7 +1219,7 @@ _perforce_jobs() {
|
||||
# This is nasty, it's really unnecessarily difficult to
|
||||
# pass arguments within completion functions...
|
||||
if [[ $argv[-2] = -e ]]; then
|
||||
ajobview=(-e "$argv[-1]")
|
||||
ajobview=(-e "${(q)argv[-1]}")
|
||||
argv=("${(@)argv[1,-3]}")
|
||||
else
|
||||
zstyle -s ":completion:${curcontext}:jobs" jobview jobview &&
|
||||
@ -1722,7 +1722,7 @@ _perforce_cmd_fix() {
|
||||
jobs=(${${(f)"$(_perforce_call_p4 fixes fixes -c $words[$words[(i)-c]+1])"}%" fixed by change "*})
|
||||
if (( ${#jobs} )); then
|
||||
jobs=("Job="${^jobs})
|
||||
job=" -e ${(j.|.)jobs}"
|
||||
job=" -e \"${(j.|.)jobs}\""
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user