From cc179e1b72ce71a2614d4faa50dd926866ab0b74 Mon Sep 17 00:00:00 2001 From: Alexander Zhylin Date: Fri, 29 May 2026 14:30:10 +0300 Subject: [PATCH] file download: a small fix --- src/file_processor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file_processor.c b/src/file_processor.c index 68bd868..5fd9bc6 100644 --- a/src/file_processor.c +++ b/src/file_processor.c @@ -125,7 +125,7 @@ void file_download(file_args_t *f_args, query_args_t *q_args) { w_ui_file_list_t *fui = (w_ui_file_list_t *)q_args->main_ui->ui; int32_t a_len = 0; - if (size_rest == 0) + if (size_rest == 0 && it_count == 0) size_rest = f_selected->size; int32_t qlen = write(f_args->file_d, q_args->buf, q_args->buf_used); if (qlen) {