zsh-workers
 help / color / mirror / code / Atom feed
* accept-and-menu-complete not working with menu-select
@ 1999-06-23  9:14 Andrej Borsenkow
  0 siblings, 0 replies; 2+ messages in thread
From: Andrej Borsenkow @ 1999-06-23  9:14 UTC (permalink / raw)
  To: ZSH workers mailing list

ESC-RETURN bound to accept-and-menu-complete

bor@itsrm2:~/tmp/abcd%> l<TAB>
bor@itsrm2:~/tmp/abcd%> l <TAB>
x   y   z     
bor@itsrm2:~/tmp/abcd%> l x<ESC><RETURN> 
x   y   z     
^ highlighted
bor@itsrm2:~/tmp/abcd%> l x x
x   y   z     
^ highlighted

This is with all current patches

/andrej


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: accept-and-menu-complete not working with menu-select
@ 1999-06-23  9:27 Sven Wischnowsky
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 1999-06-23  9:27 UTC (permalink / raw)
  To: zsh-workers


Andrej Borsenkow wrote:

> ESC-RETURN bound to accept-and-menu-complete
> 
> bor@itsrm2:~/tmp/abcd%> l<TAB>
> bor@itsrm2:~/tmp/abcd%> l <TAB>
> x   y   z     
> bor@itsrm2:~/tmp/abcd%> l x<ESC><RETURN> 
> x   y   z     
> ^ highlighted
> bor@itsrm2:~/tmp/abcd%> l x x
> x   y   z     
> ^ highlighted
> 
> This is with all current patches

You want it to go to the next match, right?

At one point in time this different behaviour was intentional, but now 
that menu-select behaves more like menu-complete, it should probably
be changed, yes.

Bye
 Sven

diff -u os/Zle/complist.c Src/Zle/complist.c
--- os/Zle/complist.c	Wed Jun 23 11:19:07 1999
+++ Src/Zle/complist.c	Wed Jun 23 11:19:52 1999
@@ -668,6 +668,9 @@
 	    s->cs = cs;
 	    memcpy(&(s->info), &minfo, sizeof(struct menuinfo));
 	    acceptlast();
+	    do_menucmp(0);
+	    mselect = (*(minfo.cur))->gnum;
+	    continue;
 	} else if (cmd == Th(z_undo)) {
 	    int l;
 

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-06-23  9:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-23  9:14 accept-and-menu-complete not working with menu-select Andrej Borsenkow
1999-06-23  9:27 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).