diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-02-24 00:50:08 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-02-24 00:50:08 +0100 |
commit | 43a4e46c50ab81bd82b856e244d9b186dfd0cdf9 (patch) | |
tree | c11667bb6346ba63d5d2843a9541c088e095dd5b | |
parent | d14aac682c5d52e3dacaadd13f4e5dd459c5bb9c (diff) |
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.
-rw-r--r-- | sfeed_curses.c | 3 |
1 files changed, 1 insertions, 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 |