zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: Re: coloring of --help completion possible?
@ 2000-06-28 13:57 Sven Wischnowsky
  0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 2000-06-28 13:57 UTC (permalink / raw)
  To: zsh-workers


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


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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-28 13:57 PATCH: Re: coloring of --help completion possible? 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).