Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: small thinko in _jobs
- X-seq: zsh-workers 9353
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: small thinko in _jobs
- Date: Tue, 18 Jan 2000 14:58:16 +0100 (MET)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
_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