From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: multiple _message call
Date: Wed, 8 Sep 1999 10:59:35 +0200 (MET DST) [thread overview]
Message-ID: <199909080859.KAA05557@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Tanaka Akira's message of 08 Sep 1999 04:17:08 +0900
Tanaka Akira wrote:
> I found a problem with _message.
>
> Z(2):akr@is27e1u11% Src/zsh -f
> is27e1u11% echo <TAB><^C>
> is27e1u11% bindkey -e; fpath=($PWD/Completion/*(/)); autoload -U compinit; compinit -D; compdef _tst tst
> is27e1u11% compconf group_matches=yes message_format='%d' description_format='%d' describe_options=yes
> is27e1u11% _tst () { _message a; _message b }
> is27e1u11% tst <TAB>
>
> After above operation, I get:
>
> is27e1u11% tst
> a @<- cursor here.
> b
>
> Although I don't know why, this does not happen without first "echo <TAB><^C>".
It had a small problem when counting the number of matches to show.
Bye
Sven
diff -u os/Zle/zle_tricky.c Src/Zle/zle_tricky.c
--- os/Zle/zle_tricky.c Mon Sep 6 14:51:26 1999
+++ Src/Zle/zle_tricky.c Wed Sep 8 10:56:39 1999
@@ -2739,7 +2739,7 @@
mpl - rpl, 0);
pli = matchparts;
}
- r = dupstring(matchbuf);
+ r = dupstring(matchbuf ? matchbuf : "");
*clp = pli;
@@ -7133,7 +7133,8 @@
((g->flags & CGF_NOSORT) ? 0 : 2),
&nn, &nl);
g->mcount = nn;
- g->lcount = nn - nl;
+ if ((g->lcount = nn - nl) < 0)
+ g->lcount = 0;
if (g->ylist) {
g->lcount = arrlen(g->ylist);
smatches = 2;
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~1999-09-08 8:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-08 8:59 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-09-07 19:17 Tanaka Akira
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=199909080859.KAA05557@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).