zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: PATCH: Re: Completion list question
Date: Mon, 26 Mar 2001 11:14:35 +0200 (MET DST)	[thread overview]
Message-ID: <200103260914.LAA13546@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Bart Schaefer"'s message of Sat, 24 Mar 2001 19:32:08 +0000


[ moved to -workers ]

Bart Schaefer wrote:

> ...
> 
> It's probably a bug (Sven?) that it's not possible to use menu selection
> without getting color listings as well.

Oops, yes it is.  Hm, and that from me who once thought I'd never use
coloured listing.  (Nowadays I'm even using menu selection for some
contexts -- what are we coming to...)

This fixes it for me.

Bye
 Sven

Index: Completion/Core/_main_complete
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_main_complete,v
retrieving revision 1.45
diff -u -r1.45 _main_complete
--- Completion/Core/_main_complete	2001/03/06 07:47:27	1.45
+++ Completion/Core/_main_complete	2001/03/26 09:11:19
@@ -302,8 +302,10 @@
 
 if [[ "$compstate[old_list]" = keep ]]; then
   ZLS_COLORS="$_saved_colors"
-else
+elif (( $#_comp_colors )); then
   ZLS_COLORS="${(j.:.)_comp_colors}"
+else
+  unset ZLS_COLORS
 fi
 
 # Now call the post-functions.
Index: Completion/Core/_setup
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_setup,v
retrieving revision 1.7
diff -u -r1.7 _setup
--- Completion/Core/_setup	2000/06/28 13:59:21	1.7
+++ Completion/Core/_setup	2001/03/26 09:11:20
@@ -20,7 +20,7 @@
 #   ZLS_COLORS="$ZLS_COLORS$ZLS_COLOURS"
 
 elif [[ "$1" = default ]]; then
-  ZLS_COLORS=
+  unset ZLS_COLORS
 fi
 
 if zstyle -t ":completion:${curcontext}:$1" list-packed; then

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


                 reply	other threads:[~2001-03-26  9:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200103260914.LAA13546@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.dk \
    /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).