From: Tanaka Akira <akr@jaist.ac.jp>
To: zsh-workers@math.gatech.edu
Subject: Explanation for no completion candidates.
Date: 27 Oct 1998 10:50:46 +0900 [thread overview]
Message-ID: <rsqemrueps9.fsf@crane.jaist.ac.jp> (raw)
Hi. I found that zsh 3.1.4 does not output a explanation given with
"-X" for compctl when there is no completion candidates.
% compctl -X explanation tst
% tst<Tab>
zsh-3.0.5 prints "explanation"
zsh-3.1.4 prints nothing
I think following patch fix this.
------------------------------------------------------------
--- Src/Zle/zle_tricky.c- Tue Oct 13 00:37:17 1998
+++ Src/Zle/zle_tricky.c Tue Oct 13 00:37:30 1998
@@ -2202,6 +2202,7 @@
}
}
+ compend:
/* Print the explanation string if needed. */
if (!showinglist && expl && nmatches != 1) {
int up;
@@ -2222,7 +2223,6 @@
putc('\n', shout);
fflush(shout);
}
- compend:
ll = strlen((char *)line);
if (cs > ll)
cs = ll;
------------------------------------------------------------
However, zsh-3.0.5 and zsh-3.1.4 has different behavior on "-X". So
this patch does not provide perfect compatibility between 3.05 and
3.1.4.
% compctl -X ex1 + -X ex2 tst
% tst<Tab>
zsh-3.0.5 prints "ex1"
zsh-3.1.4 with this patch prints "ex2"
--
[Tanaka Akira]
next reply other threads:[~1998-10-27 1:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-27 1:50 Tanaka Akira [this message]
1998-10-27 5:04 ` Bart Schaefer
1998-10-28 2:38 ` 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=rsqemrueps9.fsf@crane.jaist.ac.jp \
--to=akr@jaist.ac.jp \
--cc=zsh-workers@math.gatech.edu \
/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).