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

Re: Glitch in optimized menu-selection display



Hi!

Thanks, now I could see it. The fix below should make this most secure
by disallowing the optimisation when we're not in menu selection. I
probably should have thought of that...


Bye
  Sven

Index: Src/Zle/complist.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/complist.c,v
retrieving revision 1.49
diff -u -r1.49 complist.c
--- Src/Zle/complist.c	27 May 2002 07:41:10 -0000	1.49
+++ Src/Zle/complist.c	5 Jun 2002 07:39:04 -0000
@@ -1652,7 +1652,7 @@
     last_cap = (char *) zhalloc(max_caplen + 1);
     *last_cap = '\0';
 
-    if (!mnew && onlnct == nlnct && mlbeg >= 0 && mlbeg == molbeg)
+    if (!mnew && inselect && onlnct == nlnct && mlbeg >= 0 && mlbeg == molbeg)
         singledraw();
     else if (!compprintlist(mselect >= 0) || !clearflag)
 	noselect = 1;

-- 
Sven Wischnowsky                          wischnow@xxxxxxxxx



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