SMOLNET PORTAL home about changes
updategeom: just place the statusbar absolute on the bottom of the window - sfeed_curses - sfeed curses UI (now part of sfeed, development is in sfeed)
(URL) git clone git://git.codemadness.org/sfeed_curses (git://git.codemadness.org)
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 9c7de6a70d87fd2c7a73e68bf73e13d6ac103243
(DIR) parent 8434b8a25e88b432533280dc138369b65410ef9c
(URL) Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) application/vnd.lotus-organizer
Date: Wed, 31 Mar 2021 18:16:44 +0200
updategeom: just place the statusbar absolute on the bottom of the window
With the current calculation it could be calculated outside bounds in some
very small window sizes.
Diffstat:
M sfeed_curses.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
(DIR) diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -976,10 +976,9 @@ updategeom(void)
preventing it from overlapping with the feeds scrollbar */
scrollbars[PaneItems].hidden = panes[PaneItems].width ? panes[PaneItems].hidden : 1;
- /* statusbar below */
statusbar.width = win.width;
statusbar.x = 0;
- statusbar.y = panes[PaneItems].y + panes[PaneItems].height;
+ statusbar.y = MAX(win.height - 1, 0);
alldirty();
}
Response: application/gopher-menu
Original URLgopher://codemadness.org/1/git/sfeed_curses/commit/9c7de6...
Content-Typeapplication/gopher-menu; charset=utf-8