sfeed_curses

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

commit 064cc8ee83271127d8b9e10084708591bf830983
parent b9b19ed08de29354f5d3fb4ad42442cf7faaf76d
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon,  6 Jul 2020 01:35:41 +0200

pane_setpos: flush the output when drawing 1 or 2 dirty rows directly

This makes it feel more responsive for example when loading a big feed and
left-clicking on it. The row is highlighted before loading the feed, instead of
after.

Diffstat:
Msfeed_curses.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/sfeed_curses.c b/sfeed_curses.c @@ -652,6 +652,7 @@ pane_setpos(struct pane *p, off_t pos) p->pos = pos; pane_row_draw(p, prev); /* draw previous row again */ pane_row_draw(p, p->pos); /* draw new highlighted row */ + fflush(stdout); /* flush and update directly */ } }