Compare commits

..
2 Commits
Author SHA1 Message Date
zheiling 5021f61c80 fixes file search 2026-08-20 18:33:07 +03:00
zheiling 0ee52bc2ea dlist: fixes dlist_clear_list when dlist->start == NULL 2026-08-20 18:32:21 +03:00
3 changed files with 3 additions and 3 deletions
-2
View File
@@ -1,8 +1,6 @@
# TODO: # TODO:
## Current: ## Current:
- [ ] Integration of double-linked file list in file_list (files from server)
- [ ] Check search option
## Future: ## Future:
- [ ] File catalogs (or tags) - [ ] File catalogs (or tags)
+2
View File
@@ -144,6 +144,8 @@ int dlist_clear_list(dlist_t *dlist, dblist_rm_cb_t cb) {
dlist_node_t *current = dlist->start; dlist_node_t *current = dlist->start;
dlist_node_t *next = NULL; dlist_node_t *next = NULL;
if (current == NULL) return 1;
do { do {
cb(current->el_ptr); cb(current->el_ptr);
next = current->next; next = current->next;
+1 -1
View File
@@ -45,7 +45,7 @@ static void w_fl_cb(w_cb_args_t *args) {
} }
server_send_string(app->query_args, "%s %d %d\n", q_prefix, server_send_string(app->query_args, "%s %d %d\n", q_prefix,
fui->max_lines, 1); fui->max_lines, 1);
w_fl_reset(fui); fl_clear(fui->f_list);
} else { } else {
bconchar(fui->search_key, key); bconchar(fui->search_key, key);
w_fl_draw(fui); w_fl_draw(fui);