From 472e3d27077ff05d89947982a766e072ace169c0 Mon Sep 17 00:00:00 2001 From: night0721 Date: Sun, 17 Nov 2024 14:53:45 +0000 Subject: [PATCH] Fix toggle executable not refreshing --- ccc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ccc.c b/ccc.c index 91eec92..187398a 100644 --- a/ccc.c +++ b/ccc.c @@ -35,9 +35,11 @@ enum keys { PAGE_UP, PAGE_DOWN, }; + typedef struct { int key; } key; + #define PATH_MAX 4096 /* Max length of path */ #include "config.h" @@ -366,6 +368,10 @@ int main(int argc, char **argv) case 'X': toggle_executable(); + change_dir(cwd, 0, 0); + break; + + case '!': break; /* mark one file */