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

PATCH: fix for complist



You may have noticed that menu-selection doesn't work when there are
matches that are not shown. I overlooked one place where we have to
switch off selection in such a case.

It's a pity, isn't it? The alternative would be to allow
menu-selection but then you wouldn't be able to get at the hidden
matches (which would clash with e.g. _correct when it inserts the
original string into the line).

Bye
 Sven

diff -u os/Zle/complist.c Src/Zle/complist.c
--- os/Zle/complist.c	Wed Jun 23 17:10:07 1999
+++ Src/Zle/complist.c	Wed Jun 23 17:20:54 1999
@@ -349,7 +349,8 @@
 		    if ((l = niceztrlen(m->str)) > longest)
 			longest = l;
 		    nlist++;
-		}
+		} else
+		    noselect = 1;
 	    }
 	}
 	if ((e = g->expls)) {

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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