Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: accept-and-infer-next-history in menu selection
- X-seq: zsh-workers 7036
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: accept-and-infer-next-history in menu selection
- Date: Thu, 8 Jul 1999 13:55:20 +0200 (MET DST)
- In-reply-to: Peter Stephenson's message of Thu, 08 Jul 1999 10:37:01 +0200
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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