From 412e21a2fee23fd952b205dfd967fa34b5b60b4d Mon Sep 17 00:00:00 2001 From: Nakidai Date: Thu, 12 Jun 2025 05:04:40 +0300 Subject: Move handler setupping before first render --- fp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fp.c b/fp.c index 043b0da..3279f2d 100644 --- a/fp.c +++ b/fp.c @@ -136,17 +136,17 @@ int main(int argc, char **argv) return 1; } + loadpath(argv[1]); + render("", 0); + tcgetattr(0, &state); for (int sig = 1; sig <= SIGRTMAX; ++sig) signal(sig, getchhnd); atexit(restore); - loadpath(argv[1]); - char buf[NAME_MAX+1] = {0}; size_t bufi = 0; - render("", 0); for (int ch; (ch = getch());) { switch (ch) -- cgit 1.4.1