Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Glitch in optimized menu-selection display
- X-seq: zsh-workers 17286
- From: Sven Wischnowsky <wischnow@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Glitch in optimized menu-selection display
- Date: Wed, 5 Jun 2002 09:40:50 +0200
- In-reply-to: <1020604142853.ZM2297@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1020602164355.ZM10254@xxxxxxxxxxxxxxxxxxxxxxx> <15612.30140.846841.485740@xxxxxxxxxxxxxxxxxx> <1020604142853.ZM2297@xxxxxxxxxxxxxxxxxxxxxxx>
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