Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: accept-and-menu-complete not working with menu-select



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@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author