Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#134474: zsh misbehaves if LINES=2



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