sfeed_curses

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

commit d41cc583e601b7c31c91ef9aa65f950983996fcb
parent 6dded34cdc3563555551f02f321dc004c60e42b5
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed, 15 Jul 2020 09:10:27 +0200

on reloading all feeds: store and restore numeric position

Of course the item on the current position can be different.

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

diff --git a/sfeed_curses.c b/sfeed_curses.c @@ -1639,7 +1639,10 @@ nextpage: alldirty(); break; case 'R': /* reload all files */ + off = panes[PaneItems].pos; /* store numeric position */ feeds_load(feeds, nfeeds); + /* restore numeric position */ + pane_setpos(&panes[PaneItems], off); updatesidebar(onlynew); updategeom(); updatetitle();