zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: Re: complist bug and PATCH: spelling
Date: Fri, 17 Dec 1999 15:07:25 +0100 (MET)	[thread overview]
Message-ID: <199912171407.PAA11678@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Oliver Kiddle's message of Fri, 17 Dec 1999 13:47:26 +0000


Oliver Kiddle wrote:

> The menu selection doesn't seem to be working. I get:
> 
> SELECTMIN=0
> cd <tab><tab>    -- menu selection doesn't start
> echo $SELECTMIN
> 9999999          -- and SELECTMIN has been messed up

>From the docs for the complist module:

  When using the shell function based completion system, the
  tt(SELECTMIN) parameter should not be used (like the tt(ZLS_COLORS)
  and tt(ZLS_COLOURS) parameters described above). Instead, the tt(menu) 
  style should be used.

If I had a brain I would have thought about $SELECTMIN when I made the 
default styles set up in compinit use $ZLS_COLORS.

But still, if $SELECTMIN in set up after compinit is called, the
default will not work (nor will it work for people like me who use
`zstyle -d' to get rid of the defaults from compinit).

Bye
 Sven

diff -ru ../z.old/Completion/Core/compinit Completion/Core/compinit
--- ../z.old/Completion/Core/compinit	Fri Dec 17 11:41:05 1999
+++ Completion/Core/compinit	Fri Dec 17 15:04:01 1999
@@ -479,6 +479,7 @@
 zstyle ':completion:correct'  prompt        'correct to:'
 zstyle ':completion:*'        completer     '_complete'
 zstyle ':completion*:default' list-colors   "${(s.:.)ZLS_COLORS:-${ZLS_COLOURS:-no=0:fi=0:di=0:ln=0:pi=0:so=0:bd=0:cd=0:ex=0}}"
+(( $+SELECTMIN )) && zstyle ':completion*:default' menu "select=$SELECTMIN"
 zstyle ':completion:*' tag-order 'arguments values' options \
                                  globbed-files directories all-files
 

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


                 reply	other threads:[~1999-12-17 14:07 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=199912171407.PAA11678@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.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).