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

Re: bug with completion (after 15 oct?)



Geoff Wing wrote:

> ...
> 
> OK, if that's what you committed, then here's the next quirk:
> (continuation from same situation as before)
> 
> % ls ba<TAB><TAB><TAB><TAB><TAB>
> # gives
> % ls bar bar bar
> # when I think it should still be cycling between them.  I'll have to
> # check the setopt's I gave but historically it would.  Of course, it
> # doesn't coredump :-)  So that's better!

Ouch. There is now a cleanup-redisplay which should only be called
conditionally. It cleared `noselect', making the following tests fail.

Bye
 Sven

Index: Src/Zle/complist.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/complist.c,v
retrieving revision 1.36
diff -u -r1.36 complist.c
--- Src/Zle/complist.c	2000/10/25 08:18:45	1.36
+++ Src/Zle/complist.c	2000/10/25 10:51:02
@@ -2270,7 +2270,12 @@
 	menucmp = 2;
 	showinglist = -2;
 	minfo.asked = 0;
-	zrefresh();
+	if (!noselect) {
+	    int nos = noselect;
+
+	    zrefresh();
+	    noselect = nos;
+	}
     }
     if (!noselect && (!dat || acc)) {
 	showinglist = -2;

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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