* PATCH: fix for compctl -y
@ 1999-01-25 9:51 Sven Wischnowsky
0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 1999-01-25 9:51 UTC (permalink / raw)
To: zsh-workers
If you have a compctl (or complist) with a display list which contains
only one string this string wasn't shown (since a single normal match
don't need to be shown).
This patch should work with any 3.1.5-pws-[1-5] (or was it [2-5]?).
Bye
Sven
diff -c os/Zle/zle_tricky.c Src/Zle/zle_tricky.c
*** os/Zle/zle_tricky.c Mon Jan 25 10:23:16 1999
--- Src/Zle/zle_tricky.c Mon Jan 25 10:26:51 1999
***************
*** 5021,5029 ****
&nn, &nl);
g->mcount = nn;
g->lcount = nn - nl;
! if (g->ylist)
g->lcount = arrlen(g->ylist);
!
g->expls = (Cexpl *) makearray(g->lexpls, 0, &(g->ecount), NULL);
g->ccount = 0;
--- 4995,5004 ----
&nn, &nl);
g->mcount = nn;
g->lcount = nn - nl;
! if (g->ylist) {
g->lcount = arrlen(g->ylist);
! smatches = 2;
! }
g->expls = (Cexpl *) makearray(g->lexpls, 0, &(g->ecount), NULL);
g->ccount = 0;
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-01-25 9:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-01-25 9:51 PATCH: fix for compctl -y Sven Wischnowsky
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).