sfeed_curses

[fork] sfeed (atom feed) reader
Log | Files | Refs | README | LICENSE

commit 10293ca254b2a6686334d0b51712bd88dccd20fd
parent 19debca77852d250cef6801d587d25ebf250a3a7
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed, 19 Aug 2020 18:42:52 +0200

fix scrolling issue on some terminals

Terminals without xenl (eat newline glitch) mess up scrolling when using the
last cell on the last line on the screen.

Noticed on DragonFlyBSD terminal and on OpenIndiana (Illumos) terminal.

Diffstat:
Msfeed_curses.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sfeed_curses.c b/sfeed_curses.c @@ -1001,7 +1001,9 @@ statusbar_draw(struct statusbar *s) cursorsave(); cursormove(s->x, s->y); THEME_STATUSBAR(); - printpad(s->text, s->width); + /* terminals without xenl (eat newline glitch) mess up scrolling when + using the last cell on the last line on the screen. */ + printpad(s->text, s->width - (!eat_newline_glitch)); attrmode(ATTR_RESET); cursorrestore(); s->dirty = 0;