summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command')
-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
}
#