about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Completion/Base/_jobs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Base/_jobs b/Completion/Base/_jobs
index 48d74c307..e12410f99 100644
--- a/Completion/Base/_jobs
+++ b/Completion/Base/_jobs
@@ -6,7 +6,7 @@ _tags jobs || return 1
 
 if [[ "$1" = -t ]]; then
   zstyle -t ":completion${curcontext}:jobs" prefix-needed &&
-      [[ "$PREFIX" != %* || compstate[nmatches] -eq 0 ]] && return 1
+      [[ "$PREFIX" != %* && compstate[nmatches] -ne 0 ]] && return 1
   shift
 fi
 zstyle -t ":completion${curcontext}:jobs" prefix-hidden && pfx=''