* PATCH: Re: complist bug and PATCH: spelling
@ 1999-12-17 14:07 Sven Wischnowsky
0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 1999-12-17 14:07 UTC (permalink / raw)
To: zsh-workers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-12-17 14:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-17 14:07 PATCH: Re: complist bug and PATCH: spelling 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).