From 43a4e46c50ab81bd82b856e244d9b186dfd0cdf9 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Thu, 24 Feb 2022 00:50:08 +0100 Subject: 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. --- sfeed_curses.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sfeed_curses.c b/sfeed_curses.c index 4be111f..c911f67 100644 --- 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 -- cgit v1.2.3