* Re: Still confused with new style names
@ 2000-02-24 9:45 Sven Wischnowsky
0 siblings, 0 replies; 3+ messages in thread
From: Sven Wischnowsky @ 2000-02-24 9:45 UTC (permalink / raw)
To: zsh-workers
Andrej Borsenkow wrote:
> This is plain dev-19. Menu select simply does not work. I tried the
> settings:
>
> zstyle ':completion:*' menu select=0 (as I had originally)
> zstyle ':completion:*' menu select
> zstyle ':completion::*:*:*:default' menu select
> zstyle ':completion:::::default' menu select
>
> none works. Other settings are listed here (well, you also wee all menu
> selects I tried ;-). Weird is, that list-colors do work with the same
> settings.
They should all work, the last two should be prefered, though.
The problem was that _oldlist made the old list be kept and
_main_complete didn't test that.
Bye
Sven
diff -ru ../z.old/Completion/Core/_main_complete Completion/Core/_main_complete
--- ../z.old/Completion/Core/_main_complete Thu Feb 24 09:54:43 2000
+++ Completion/Core/_main_complete Thu Feb 24 10:43:49 2000
@@ -97,7 +97,8 @@
esac
fi
-if [[ -n "$tmp" || $compstate[nmatches]+$compstate[alternate_nmatches] -gt 1 ]]; then
+if [[ -n "$tmp" || $compstate[old_list] = keep ||
+ $compstate[nmatches]+$compstate[alternate_nmatches] -gt 1 ]]; then
[[ _last_nmatches -ge 0 && _last_nmatches -ne compstate[nmatches] ]] &&
_menu_style=( "$_last_menu_style[@]" "$_menu_style[@]" )
@@ -152,7 +153,7 @@
fi
fi
elif [[ $compstate[nmatches]+$compstate[alternate_nmatches] -eq 0 &&
- $#_lastdescr -ne 0 ]] &&
+ $#_lastdescr -ne 0 && $compstate[old_list] != keep ]] &&
zstyle -s ":completion:${curcontext}:warnings" format format; then
compstate[list]='list force'
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Still confused with new style names
@ 2000-02-24 8:28 Andrej Borsenkow
2000-02-24 8:43 ` Andrej Borsenkow
0 siblings, 1 reply; 3+ messages in thread
From: Andrej Borsenkow @ 2000-02-24 8:28 UTC (permalink / raw)
To: ZSH workers mailing list
This is plain dev-19. Menu select simply does not work. I tried the
settings:
zstyle ':completion:*' menu select=0 (as I had originally)
zstyle ':completion:*' menu select
zstyle ':completion::*:*:*:default' menu select
zstyle ':completion:::::default' menu select
none works. Other settings are listed here (well, you also wee all menu
selects I tried ;-). Weird is, that list-colors do work with the same
settings.
/andrej
zstyle ':completion:*' completer _oldlist _complete _match
zstyle :completion::approximate: max-errors 3
zstyle :completion:::::default menu select
zstyle ':completion:*::::default' menu select
zstyle ':completion:*:*:::default' menu select
zstyle ':completion::*:*:default' menu select
zstyle ':completion::*:*:*:default' menu select
zstyle ':completion:*' menu select
zstyle ':completion:*::::default' list-colors ''
zstyle ':completion:*:match:*' original yes
zstyle ':completion:*:match:*' insert-unambiguous yes
zstyle ':completion:*:paths' cursor yes
zstyle ':completion:*:oldlist' list _match
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-02-24 9:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-24 9:45 Still confused with new style names Sven Wischnowsky
-- strict thread matches above, loose matches on Subject: below --
2000-02-24 8:28 Andrej Borsenkow
2000-02-24 8:43 ` Andrej Borsenkow
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).