aboutsummaryrefslogtreecommitdiffstats
path: root/fm.h
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-07-22 13:10:18 +0800
committerverdant <im@verdant.ee>2026-07-22 13:10:18 +0800
commitfbfca7b40b96ae109a1e8393eb26ebdfb3e8a0ef (patch)
tree038d50ad8f0e46d09b1b99b70b74343176df4917 /fm.h
parenteaff9b74f5a6818809ca95c522c50fa5e18ee3f4 (diff)
downloadsf-fbfca7b40b96ae109a1e8393eb26ebdfb3e8a0ef.tar.gz
sf-fbfca7b40b96ae109a1e8393eb26ebdfb3e8a0ef.zip
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.
Diffstat (limited to 'fm.h')
-rw-r--r--fm.h8
1 files 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);