1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00

unposted: fix definition of _perforce_whole_path in 26690

This commit is contained in:
Peter Stephenson 2009-03-06 11:23:17 +00:00
parent 3d5474eb60
commit d968acfacd
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2009-03-06 Peter Stephenson <pws@csr.com>
* unposted: fix definition of _perforce_whole_path in 26690.
2009-03-04 Peter Stephenson <pws@csr.com>
* 26690: Completion/Unix/Command/_perforce: the
@ -11342,5 +11346,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.4602 $
* $Revision: 1.4603 $
*****************************************************

View file

@ -821,13 +821,15 @@ _perforce_whole_path() {
zstyle -s ":completion:${curcontext}:$1" whole-path wp
case $wp in
(true|yes|on|1)
do_wp=1
return 0
;;
(absolute)
[[ ${(Q)PREFIX} = /* ]] && do_wp=1
[[ ${(Q)PREFIX} = /* ]] && return 0
;;
esac
return 1
}
#