From fbfca7b40b96ae109a1e8393eb26ebdfb3e8a0ef Mon Sep 17 00:00:00 2001 From: verdant Date: Wed, 22 Jul 2026 13:10:18 +0800 Subject: Refactor struct fm_info Use file_item instead fm_info. This struct includes the name of his directory or file and if this item is a directory. --- fm.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/fm.h b/fm.h index fd26d4b..70ae996 100644 --- a/fm.h +++ b/fm.h @@ -6,11 +6,9 @@ #include "wm.h" typedef struct { - window *fm_l, *fm_r; - char** cur_contents; - char** next_dir_contents; - int content_idx; -} fm_info; + char name[256]; + int is_dir; +} file_item; static fm_info* fm_w_init(terminal* t); void fm_getdir(fm_info* f); -- cgit v1.2.3