commit 3f27f6d1fbea675c3dedd40d94d6c7d2e607e23f
parent f2df83a7333cbb5211ee030110a32d51b9f35d55
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 26 Jun 2020 13:07:54 +0200
use the same sidebar size always
This doesn't scale the sidebar more optimally when showing only new feeds, but
it fixes an "issue" where the sidebar width is 0 when there are no feeds with
new items and toggling the sidebar with 't'.
Diffstat:
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -1115,8 +1115,6 @@ updatesidebar(int onlynew)
feedw = 0;
for (i = 0; i < nfeeds; i++) {
- if (onlynew && feeds[i].totalnew == 0)
- continue;
snprintf(bufw, sizeof(bufw), "%s (%ld/%ld)",
feeds[i].name, feeds[i].totalnew, feeds[i].total);
len = colw(bufw);