Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#134474: zsh misbehaves if LINES=2
- X-seq: zsh-workers 20196
- From: Geoff Wing <gcw@xxxxxxx>
- To: Zsh Hackers <zsh-workers@xxxxxxxxxx>
- Subject: Re: Bug#134474: zsh misbehaves if LINES=2
- Date: Mon, 26 Jul 2004 12:25:52 +1000
- In-reply-to: <20040723180422.GA10693@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: PrimeNet Computer Consultancy
- References: <1020221065017.ZM1834@xxxxxxxxxxxxxxxxxxxxxxx> <20040723180422.GA10693@xxxxxxxxxxx>
Clint Adams <schizo@xxxxxxxxxx> typed:
: - if (!(termflags & TERM_SHORT) && tcstr[cap]) {
: + if (!isset(SINGLE_LINE_ZLE) && tcstr[cap]) {
s/SINGLE_LINE_ZLE/SINGLELINEZLE/
however I'd be more inclined to use the following conditional
though possibly the check on SINGLELINEZLE might be elided
depending on what commitments upon output we claim on that
option.
Regards,
Geoff
--- Src/prompt.c.org 2004-06-23 04:31:08.000000000 +1000
+++ Src/prompt.c 2004-07-26 12:20:11.000000000 +1000
@@ -746,7 +746,8 @@
mod_export void
tsetcap(int cap, int flag)
{
- if (!(termflags & TERM_SHORT) && tcstr[cap]) {
+ if (tccan(cap) && !isset(SINGLELINEZLE) &&
+ !(termflags & (TERM_NOUP|TERM_BAD|TERM_UNKNOWN))) {
switch(flag) {
case -1:
tputs(tcstr[cap], 1, putraw);
Messages sorted by:
Reverse Date,
Date,
Thread,
Author