From 3c005f84f99ec21cbf1e9c92392a8ef064f6419f Mon Sep 17 00:00:00 2001 From: night0721 Date: Fri, 22 Nov 2024 10:17:57 +0000 Subject: [PATCH] Fix window not resized when receive signal --- ccc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ccc.c b/ccc.c index 703a2e3..6e0fe49 100644 --- a/ccc.c +++ b/ccc.c @@ -188,7 +188,7 @@ int main(int argc, char **argv) getcwd(cwd, PATH_MAX); populate_files(cwd, 0, &files); - handle_sigwinch(-1); + get_window_size(&rows, &cols); if (to_open_file) { sel_file = arraylist_search(files, argv_cp, 1); @@ -215,6 +215,7 @@ void keybinding(void) void handle_sigwinch(int ignore) { get_window_size(&rows, &cols); + list_files(); } void cleanup(void)