diff options
| author | verdant <im@verdant.ee> | 2026-07-22 13:10:18 +0800 |
|---|---|---|
| committer | verdant <im@verdant.ee> | 2026-07-22 13:10:18 +0800 |
| commit | fbfca7b40b96ae109a1e8393eb26ebdfb3e8a0ef (patch) | |
| tree | 038d50ad8f0e46d09b1b99b70b74343176df4917 | |
| parent | eaff9b74f5a6818809ca95c522c50fa5e18ee3f4 (diff) | |
| download | sf-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.
| -rw-r--r-- | fm.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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); |
