code cleanup: don't call updategeom() in init() itself - 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 e37cbef2ec362a29ea79ece4e88bd4a65e8c1145
(DIR) parent ddf5df16b38ffae681dea75408146b51c0daeda0
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 20 Mar 2021 12:25:48 +0100
code cleanup: don't call updategeom() in init() itself
Diffstat:
M sfeed_curses.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -654,8 +654,6 @@ init(void)
if (usemouse)
mousemode(usemouse);
- updategeom();
-
memset(&sa, 0, sizeof(sa));
sigemptyset(&sa.sa_mask);
sa.sa_flags = SA_RESTART; /* require BSD signal semantics */
@@ -686,6 +684,7 @@ processexit(pid_t pid, int interactive)
updatesidebar();
updatetitle();
init();
+ updategeom();
} else {
sa.sa_handler = sighandler;
sigaction(SIGINT, &sa, NULL);
@@ -2071,6 +2070,7 @@ main(int argc, char *argv[])
updatesidebar();
updatetitle();
init();
+ updategeom();
draw();
while (1) {