summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2022-03-25 13:30:37 +0100
committerYorhel <git@yorhel.nl>2022-03-25 13:30:37 +0100
commite9e40e1827adccab838724b182c1f7bf679a5d5c (patch)
tree8b9748c698c651b68c90fdf5d397bcb0c6cd286f
parent50848fea6a7c7270eb84e70b73985a4d8763c00e (diff)
UI: Fix non-plural "file" when there is only 1 file in dl queue
-rw-r--r--src/uit_dl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uit_dl.c b/src/uit_dl.c
index dd75144..4583fcf 100644
--- a/src/uit_dl.c
+++ b/src/uit_dl.c
@@ -227,7 +227,7 @@ static void t_draw(ui_tab_t *tab) {
mvaddstr(bottom, 0, hash);
} else
mvaddstr(bottom, 0, "Nothing selected.");
- mvprintw(bottom, wincols-19, "%5d files - %3d%%", g_hash_table_size(dl_queue), pos);
+ mvprintw(bottom, wincols-19, "%5d file%c - %3d%%", g_hash_table_size(dl_queue), g_hash_table_size(dl_queue) == 1 ? ' ' : 's', pos);
attroff(UIC(separator));
// error info