Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Re: coloring of --help completion possible?
- X-seq: zsh-workers 12107
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: Re: coloring of --help completion possible?
- Date: Wed, 28 Jun 2000 15:57:51 +0200 (MET DST)
- In-reply-to: Matthias Kopfermann's message of Wed, 28 Jun 2000 15:22:25 +0200
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
[ moved to workers, not CC'ed ]
Matthias Kopfermann wrote:
> Ah, and another question:
> As I am a big color-completion-fan (yes, this is emotional, not only
> functional :) ) I would like to have my
> `--' completion do act in a colorful way.
> But I am not sure how I can do that.
> As i understand it It does involve zstyle ':completion:*'
> something?
This made me notice some misformatting in the ZLS_COLORS generated and
the C-code should probably skip `empty' `capabilities' (as in `a=x::b=y').
Bye
Sven
Index: Completion/Core/_setup
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_setup,v
retrieving revision 1.6
diff -u -r1.6 _setup
--- Completion/Core/_setup 2000/06/22 08:42:36 1.6
+++ Completion/Core/_setup 2000/06/28 13:57:26
@@ -10,7 +10,7 @@
_comp_colors=( "$val[@]" )
else
_comp_colors=( "$_comp_colors[@]"
- "(${2})${(@)^val:#\(*\)*}" "${(M@)val:#\(*\)*}" )
+ "(${2})${(@)^val:#(|\(*\)*)}" "${(M@)val:#\(*\)*}" )
fi
# Here is the problem mentioned in _main_complete.
Index: Src/Zle/complist.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/complist.c,v
retrieving revision 1.30
diff -u -r1.30 complist.c
--- Src/Zle/complist.c 2000/06/28 07:29:59 1.30
+++ Src/Zle/complist.c 2000/06/28 13:57:27
@@ -362,7 +362,10 @@
memset(c, 0, sizeof(*c));
s = dupstring(s);
while (*s)
- s = getcoldef(c, s);
+ if (*s == ':')
+ s++;
+ else
+ s = getcoldef(c, s);
/* Use default values for those that aren't set explicitly. */
for (i = 0; i < NUM_COLS; i++) {
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author