Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: accept-and-menu-complete not working with menu-select
- X-seq: zsh-workers 6807
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: accept-and-menu-complete not working with menu-select
- Date: Wed, 23 Jun 1999 11:27:17 +0200 (MET DST)
- In-reply-to: "Andrej Borsenkow"'s message of Wed, 23 Jun 1999 13:14:34 +0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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