From 149fc5a4dd2854f3ee757d5575379f86da425eae Mon Sep 17 00:00:00 2001 From: nhmall Date: Sat, 12 May 2018 14:42:19 -0400 Subject: [PATCH] empty field suppression caught condition values unintentionally --- win/tty/wintty.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/win/tty/wintty.c b/win/tty/wintty.c index 4562788db..dbfc6d863 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -3631,8 +3631,8 @@ unsigned long *colormasks; /* The core botl engine sends a single blank to the window port for carrying-capacity when its unused. Let's suppress that */ - if (tty_status[NOW][fldidx].lth == 1 && - status_vals[fldidx][0] == ' ') { + if (tty_status[NOW][fldidx].lth == 1 + && status_vals[fldidx][0] == ' ') { status_vals[fldidx][0] = '\0'; tty_status[NOW][fldidx].lth = 0; } @@ -3805,7 +3805,7 @@ render_status(VOID_ARGS) * Ignore zero length fields. check_fields() didn't count * them in either. */ - if (!tty_status[NOW][fldidx].lth) + if (!tty_status[NOW][fldidx].lth && fldidx != BL_CONDITION) continue; if (fldidx == BL_CONDITION) {