summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Unix/Command/_perforce6
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 4391cf027..a8da83ffd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 $                         
 *****************************************************
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
 }
 
 #