Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: completion listing fix
- X-seq: zsh-workers 5605
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: completion listing fix
- Date: Tue, 2 Mar 1999 14:55:37 +0100 (MET)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Just discovered this one... When one has a group of matches with an
explanation string and matches, but the matches are not shown in the
list, the re-positioning of the cursor failed utterly (placing the
cursor below the old prompt, in the list).
Bye
Sven
diff -u os/Zle/zle_tricky.c Src/Zle/zle_tricky.c
--- os/Zle/zle_tricky.c Tue Mar 2 14:19:10 1999
+++ Src/Zle/zle_tricky.c Tue Mar 2 14:49:51 1999
@@ -6954,7 +6954,10 @@
if ((*ap)->flags & CMF_NOLIST)
nl++;
*cp = NULL;
- }
+ } else
+ for (ap = rp; *ap; ap++)
+ if ((*ap)->flags & CMF_NOLIST)
+ nl++;
if (np)
*np = n;
if (nlp)
@@ -7809,14 +7812,14 @@
char **pp = g->ylist;
if ((e = g->expls)) {
- if (pnl) {
- putc('\n', shout);
- pnl = 0;
- }
while (*e) {
if ((*e)->count) {
+ if (pnl) {
+ putc('\n', shout);
+ pnl = 0;
+ }
printfmt((*e)->str, (*e)->count, 1);
- putc('\n', shout);
+ pnl = 1;
}
e++;
}
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author