From: Bernd Eggink <eggink@uni-hamburg.de>
To: Zsh-workers <zsh-workers@math.gatech.edu>
Subject: Patch: select
Date: Fri, 06 Mar 1998 12:37:16 +0100 [thread overview]
Message-ID: <34FFDFEC.7FBC7EC7@rrz.uni-hamburg.de> (raw)
Here is a patch against zsh-3.1.2-zefram3 that makes select behave
according to the documentation (don't print the select list again after
non-empty user input).
---------------- %< --------------------
--- loop.c.old Fri Mar 6 12:14:41 1998
+++ loop.c Fri Mar 6 12:19:40 1998
@@ -156,9 +156,9 @@
lastval = 0;
pushheap();
inp = fdopen(dup((SHTTY == -1) ? 0 : SHTTY), "r");
+ selectlist(args);
for (;;) {
do {
- selectlist(args);
if (empty(bufstack)) {
if (interact && SHTTY != -1 && isset(USEZLE))
str = (char *)zleread(prompt3, NULL, 0);
@@ -180,6 +180,8 @@
}
if ((s = strchr(str, '\n')))
*s = '\0';
+ if (!*str)
+ selectlist(args);
}
while (!*str);
setsparam("REPLY", ztrdup(str));
---------------- %< --------------------
Regards,
Bernd
--
Bernd Eggink
Regionales Rechenzentrum der Universitaet Hamburg
eggink@rrz.uni-hamburg.de
http://www.rrz.uni-hamburg.de/eggink/BEggink.html
reply other threads:[~1998-03-06 11:49 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=34FFDFEC.7FBC7EC7@rrz.uni-hamburg.de \
--to=eggink@uni-hamburg.de \
--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).