about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-03-06 11:23:17 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-03-06 11:23:17 +0000
commitd968acfacd3db570a4275f8abfc5804024230bd3 (patch)
tree2efeca3b298db66097e16e69b415a6704e203974 /Completion/Unix
parent3d5474eb60e37b60aea472b34ebcc308463e105f (diff)
downloadzsh-d968acfacd3db570a4275f8abfc5804024230bd3.tar.gz
zsh-d968acfacd3db570a4275f8abfc5804024230bd3.tar.xz
zsh-d968acfacd3db570a4275f8abfc5804024230bd3.zip
unposted: fix definition of _perforce_whole_path in 26690
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_perforce6
1 files changed, 4 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_perforce b/Completion/Unix/Command/_perforce
index 0b0af55a0..672c2299e 100644
--- a/Completion/Unix/Command/_perforce
+++ b/Completion/Unix/Command/_perforce
@@ -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
 }
 
 #