commit 6dded34cdc3563555551f02f321dc004c60e42b5
parent 2e95df221e9054dd7ee1271267efc571097bf2c1
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 14 Jul 2020 21:35:30 +0200
update the entire sidebar when (re)loading a single feed
The items are aligned, when (re)opening a feed the counts can change. These
counts could resize the sidebar panel and increase/decrease it. This can make
everything dirty in some cases.
The screen will now always look correct, but it may flicker for a small moment
and have some redundant writes.
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -1319,7 +1319,8 @@ mousereport(int button, int release, int x, int y)
if (f->fp)
feed_load(f, f->fp);
/* redraw row: counts could be changed */
- pane_row_draw(p, pos);
+ updatesidebar(onlynew);
+ updategeom();
updatetitle();
} else if (i == PaneItems) {
if (dblclick && !changedpane) {
@@ -1678,7 +1679,8 @@ nextpage:
if (f->fp)
feed_load(f, f->fp);
/* redraw row: counts could be changed */
- pane_row_draw(p, p->pos);
+ updatesidebar(onlynew);
+ updategeom();
updatetitle();
} else if (selpane == PaneItems && panes[PaneItems].nrows) {
p = &panes[PaneItems];