From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: Bug: _oldlist and automatic coloring of matched
Date: Sat, 24 Apr 2010 10:35:06 -0700 [thread overview]
Message-ID: <s2x691a5d911004241035ra479cf4du2d02c2244f143c7f@mail.gmail.com> (raw)
In-Reply-To: <20100423222858.GC11609@plenz.com>
On Fri, Apr 23, 2010 at 3:28 PM, Julius Plenz <julius@plenz.com> wrote:
>
> autoload -U compinit && compinit
> zmodload -i zsh/complist
> zstyle ':completion:*' completer _oldlist _complete
> zstyle ':completion:*' menu select select=long-list
>
> If you hit Tab the first time, the listing of filenames is not
> colored. But once you hit Tab again (and the _oldlist completer comes
> into play) suddenly some matches are colored.
This is actually coming from _main_complete, here:
if [[ "$compstate[old_list]" = keep ]]; then
ZLS_COLORS="$_saved_colors"
elif (( $#_comp_colors )); then
ZLS_COLORS="${(j.:.)_comp_colors}"
else
unset ZLS_COLORS
fi
I guess there should be a second test that $_saved_colors is non-empty
before assigning it to ZLS_COLORS ... but I'm not sure that's correct
either, because we don't know at this point *why* $_saved_colors is
empty, i.e., whether the value when saved was empty or unset.
next prev parent reply other threads:[~2010-04-24 17:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-23 22:28 Julius Plenz
2010-04-24 17:35 ` Bart Schaefer [this message]
2010-04-25 21:22 ` Peter Stephenson
2010-04-26 16:21 ` Bart Schaefer
2010-04-26 17:14 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s2x691a5d911004241035ra479cf4du2d02c2244f143c7f@mail.gmail.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).