From c80e5ec48f11a039adfe35d7a402cc70a7135499 Mon Sep 17 00:00:00 2001 From: Sadrul Habib Chowdhury Date: Tue, 27 Apr 2010 12:36:27 -0400 Subject: Fix reversed logic. The hardstatus line was being shown in incorrect rendition with both caption and hardstatus turned on. --- src/display.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/display.c b/src/display.c index 53422e1..6a9095f 100644 --- a/src/display.c +++ b/src/display.c @@ -2217,8 +2217,8 @@ char *str; } else if (D_has_hstatus == HSTATUS_LASTLINE) { - int hascaption = (captionalways == CAPTION_ALWAYS) || - (captionalways == CAPTION_SPLITONLY && D_cvlist && !D_cvlist->c_next); + int hascaption = ((captionalways == CAPTION_ALWAYS) || + (captionalways == CAPTION_SPLITONLY && D_cvlist && D_cvlist->c_next)); debug("ShowHStatus: using last line\n"); ox = D_x; oy = D_y; @@ -2227,9 +2227,9 @@ char *str; if (l > D_width) l = D_width; GotoPos(0, D_height - 1); - SetRendition(!hascaption ? &mchar_null: &mchar_so); + SetRendition(hascaption ? &mchar_null: &mchar_so); l = PrePutWinMsg(str, 0, l); - if (hascaption) + if (!hascaption) while (l++ < D_width) PUTCHARLP(' '); if (l < D_width) -- cgit v1.2.1