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

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



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?

Hm. It works for me (even without the patch below). What I'm doing is:

  bindkey -M menuselect / accept-and-infer-next-history

then select e.g. a directory and hit / -- for me this continues
completion in the selected directory.

The patch fixes a small problem when a-a-i-n-h'ing a something
unambiguous (the list was left in place).

Bye
 Sven

diff -u os/Zle/complist.c Src/Zle/complist.c
--- os/Zle/complist.c	Wed Jul  7 11:28:49 1999
+++ Src/Zle/complist.c	Thu Jul  8 10:53:17 1999
@@ -697,6 +697,8 @@
 	    menucomplete(zlenoargs);
 	    if (dat->num < 2 || !minfo.cur || !*(minfo.cur)) {
 		noselect = 1;
+		clearlist = 1;
+		zrefresh();
 		break;
 	    }
 	    clearlist = 1;

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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