Introduction
Introduction Statistics Contact Development Disclaimer Help
code cleanup: don't call updategeom() in init() itself - sfeed_curses - sfeed c…
git clone git://git.codemadness.org/sfeed_curses
Log
Files
Refs
README
LICENSE
---
commit e37cbef2ec362a29ea79ece4e88bd4a65e8c1145
parent ddf5df16b38ffae681dea75408146b51c0daeda0
Author: Hiltjo Posthuma <[email protected]>
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(-)
---
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) {
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.