|
|
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) |
|
|
 |
git clone git://git.codemadness.org/sfeed_curses (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
 |
commit 9c7de6a70d87fd2c7a73e68bf73e13d6ac103243 |
|
|
 |
parent 8434b8a25e88b432533280dc138369b65410ef9c |
|
|
 |
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(-) |
|
|
|
--- |
|
|
 |
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(); |
|
|
|
} |
|