diff options
author | Sadrul Habib Chowdhury <sadrul@users.sourceforge.net> | 2010-04-27 12:36:27 -0400 |
---|---|---|
committer | Sadrul Habib Chowdhury <sadrul@users.sourceforge.net> | 2010-04-27 12:36:27 -0400 |
commit | c80e5ec48f11a039adfe35d7a402cc70a7135499 (patch) | |
tree | 57c9efd0238cf0c3772cd16f317ea6f17b501631 | |
parent | a04f24a4456290e00c736d982629aa68dc19a7de (diff) | |
download | screen-caption-never.tar.gz |
Fix reversed logic.caption-never
The hardstatus line was being shown in incorrect rendition with
both caption and hardstatus turned on.
-rw-r--r-- | src/display.c | 8 |
1 files 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) |