zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: small thinko in _jobs
@ 2000-01-18 13:58 Sven Wischnowsky
  0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 2000-01-18 13:58 UTC (permalink / raw)
  To: zsh-workers


_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@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-01-18 13:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-18 13:58 PATCH: small thinko in _jobs Sven Wischnowsky

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).