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

Re: accept-and-infer-next-history in menu selection



Peter Stephenson wrote:

> Peter Stephenson wrote:
> > I can't get accept-and-infer-next-history to work in menu selection at
> > all.  It simply cycles round to the next match.  What could I be doing
> > wrong?
> 
> I've tracked it down: it's incompatible with the _oldlist key oldlist_menu,
> which says to keep the old menu.  As far as I can see, it has no way of
> knowing that you really want to try a different completion at that point,
> so there's no way of using _oldlist here.

Throwing away the old list before stepping down might be a good idea
anyway...

Bye
 Sven

diff -u os/Zle/complist.c Src/Zle/complist.c
--- os/Zle/complist.c	Thu Jul  8 11:11:37 1999
+++ Src/Zle/complist.c	Thu Jul  8 13:51:41 1999
@@ -694,6 +694,8 @@
 	    break;
 	} else if (cmd == Th(z_acceptandinfernexthistory)) {
 	    menucmp = 0;
+	    fixsuffix();
+	    invalidatelist();
 	    menucomplete(zlenoargs);
 	    if (dat->num < 2 || !minfo.cur || !*(minfo.cur)) {
 		noselect = 1;

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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