sfeed_curses

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

commit 795c0547aff616f42d92b7a2a91701cab08767b1
parent 25d72222b36bf798a8f37da6033e2b570ad96538
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 27 Jun 2020 23:00:13 +0200

use pane_row_get for loading the row data, remove some unused vars

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

diff --git a/sfeed_curses.c b/sfeed_curses.c @@ -1204,7 +1204,8 @@ mousereport(int button, int release, int x, int y) if (i == PaneItems) { pane_setpos(p, pos); p = &panes[PaneItems]; - item = (struct item *)p->rows[p->pos].data; + row = pane_row_get(p, p->pos); + item = (struct item *)row->data; pipeitem(item); } break; @@ -1534,9 +1535,9 @@ nextpage: case '@': if (selpane == PaneItems && panes[PaneItems].nrows) { p = &panes[PaneFeeds]; - f = (struct feed *)curfeed; p = &panes[PaneItems]; - item = (struct item *)p->rows[p->pos].data; + row = pane_row_get(p, p->pos); + item = (struct item *)row->data; plumb(item->fields[FieldEnclosure]); } break; @@ -1577,7 +1578,6 @@ nextpage: case '|': if (selpane == PaneItems && panes[PaneItems].nrows) { p = &panes[PaneFeeds]; - f = (struct feed *)curfeed; p = &panes[PaneItems]; row = pane_row_get(p, p->pos); item = (struct item *)row->data;