From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: completion listing fix
Date: Tue, 2 Mar 1999 14:55:37 +0100 (MET) [thread overview]
Message-ID: <199903021355.OAA19188@beta.informatik.hu-berlin.de> (raw)
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@informatik.hu-berlin.de
reply other threads:[~1999-03-02 13:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199903021355.OAA19188@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).