fix the initial items scrollbar for the monocle layout... - sfeed_curses - sfee… | |
git clone git://git.codemadness.org/sfeed_curses | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit abb3c25a40a627f2d337de1303ef9ab0a119f1d3 | |
parent 05360826ef21c11ec81c9356784a923b0912ddd7 | |
Author: Hiltjo Posthuma <[email protected]> | |
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(-) | |
--- | |
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[PaneItem… | |
/* statusbar below */ | |
statusbar.width = win.width; |