Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: small thinko in _jobs



_jobs with the -t option performs the prefix-needed test. This test
was slightly wrong.

Bye
 Sven

diff -ru ../z.old/Completion/Base/_jobs Completion/Base/_jobs
--- ../z.old/Completion/Base/_jobs	Tue Jan 18 12:37:36 2000
+++ Completion/Base/_jobs	Tue Jan 18 14:53:53 2000
@@ -6,7 +6,7 @@
 
 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=''

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author