From 16ca576eefc6bb3fe85a6e6e58521b99d5b9fe47 Mon Sep 17 00:00:00 2001 From: verdant Date: Mon, 27 Jul 2026 09:47:14 +0800 Subject: Implement directory preview --- fm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'fm.c') diff --git a/fm.c b/fm.c index e03ac57..a4a9c3d 100644 --- a/fm.c +++ b/fm.c @@ -102,6 +102,7 @@ file_list *fm_getdir(file_list *list, const char *path) if (new_list->items && new_list->cap > 0) { LOG_WRITE_INFO("Initialize list"); memset(new_list->items, 0, new_list->cap * sizeof(file_item)); + new_list->count = 0; } struct dirent *d; -- cgit v1.2.3