fix the initial items scrollbar for the monocle layout... - sfeed_curses - sfeed curses UI (now part of sfeed, development is in sfeed)
 (HTM) git clone git://git.codemadness.org/sfeed_curses
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit abb3c25a40a627f2d337de1303ef9ab0a119f1d3
 (DIR) parent 05360826ef21c11ec81c9356784a923b0912ddd7
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Tue, 16 Mar 2021 18:55:21 +0100
       
       fix the initial items scrollbar for the monocle layout...
       
       ... and add a comment why the width is checked for clarity.
       
       Diffstat:
         M sfeed_curses.c                      |       4 +++-
       
       1 file changed, 3 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/sfeed_curses.c b/sfeed_curses.c
       @@ -959,7 +959,9 @@ updategeom(void)
                scrollbars[PaneItems].x = panes[PaneItems].x + panes[PaneItems].width;
                scrollbars[PaneItems].y = panes[PaneItems].y;
                scrollbars[PaneItems].size = panes[PaneItems].height;
       -        scrollbars[PaneItems].hidden = panes[PaneItems].width ? 0 : 1;
       +        /* if the items don't fit on the screen then hide the scrollbar,
       +           preventing it from overlapping with the feeds scrollbar */
       +        scrollbars[PaneItems].hidden = panes[PaneItems].width ? panes[PaneItems].hidden : 1;
        
                /* statusbar below */
                statusbar.width = win.width;