sfeed_curses

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

commit e1b7e083669b13f335e4a388187e17b9c911a8d0
parent 5f73fced6f8e7c9a0b21f8840109fa88a86a7fa3
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 16 Jul 2020 17:29:21 +0200

pane_row_get can lazyload items (if lazyload=1)

It must not be done in these places.

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

diff --git a/sfeed_curses.c b/sfeed_curses.c @@ -1065,7 +1065,7 @@ updatenewitems(struct feed *f) p = &panes[PaneItems]; f->totalnew = 0; for (i = 0; i < p->nrows; i++) { - row = pane_row_get(p, i); + row = &(p->rows[i]); /* do not use pane_row_get */ item = (struct item *)row->data; item->isnew = (item->timeok && item->timestamp >= comparetime); row->bold = item->isnew; @@ -1101,7 +1101,7 @@ feed_load(struct feed *f, FILE *fp) p->nrows = nitems; p->rows = ecalloc(sizeof(p->rows[0]), nitems + 1); for (i = 0; i < nitems; i++) { - row = &(p->rows[i]); + row = &(p->rows[i]); /* do not use pane_row_get */ row->text = ""; /* custom formatter */ row->data = &(items[i]); }