sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 43a4e46c50ab81bd82b856e244d9b186dfd0cdf9
parent d14aac682c5d52e3dacaadd13f4e5dd459c5bb9c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 24 Feb 2022 00:50:08 +0100

sfeed_curses: fix a redraw when reloading a file when reading from stdin

When reading data from stdin and changing the URL file externally in some way
and then pressing 'R' would not redraw (and highlight/unhighlight) the marked
items.

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

diff --git a/sfeed_curses.c b/sfeed_curses.c @@ -1205,6 +1205,7 @@ updatenewitems(struct feed *f) size_t i; p = &panes[PaneItems]; + p->dirty = 1; f->totalnew = 0; for (i = 0; i < p->nrows; i++) { row = &(p->rows[i]); /* do not use pane_row_get() */ @@ -1238,8 +1239,6 @@ feed_load(struct feed *f, FILE *fp) p->rows[i].data = &(items.items[i]); /* do not use pane_row_get() */ updatenewitems(f); - - p->dirty = 1; } void