Fix status display in text UI (from 723df46) - sacc - sacc(omys), simple console gopher client
(HTM) git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/sacc/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) LICENSE
---
(DIR) commit 4472c9895534239b693171b37c1766352b538419
(DIR) parent 795273efd4ce345d72749d61e1a9be5c978aba73
(HTM) Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 23 Oct 2017 17:55:48 +0200
Fix status display in text UI (from 723df46)
Diffstat:
M ui_txt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/ui_txt.c b/ui_txt.c
@@ -81,7 +81,7 @@ printstatus(Item *item, char c)
unsigned long long printoff = dir ? dir->printoff : 0;
fmt = (strcmp(item->port, "70") && strcmp(item->port, "gopher")) ?
- "%3lld%%%*c %s:%7$s/%c%s [%c]" : "%3lld%%%*c %s/%c%s [%c]";
+ "%3lld%%%*c %s:%7$s/%c%s [%c]: " : "%3lld%%%*c %s/%c%s [%c]: ";
printf(fmt, (printoff + lines-1 >= nitems) ? 100 :
(printoff + lines) * 100 / nitems, ndigits(nitems)+2, '|',
item->host, item->type, item->selector, c, item->port);