sacc

sacc(omys), simple console gopher client (mirror)
git clone https://git.parazyd.org/sacc
Log | Files | Refs | LICENSE

commit d733c513f8f4e7318c0a9578335f9cfb2bf63211
parent c15197ca5f00c090cce31f7b497dc4b536484200
Author: Quentin Rameau <quinq@fifth.space>
Date:   Sun, 10 Dec 2017 21:59:26 +0100

Fix printstatus in ui_txt

Get the right argument number for the gopher port

Thanks to Hiljto for spotting this!

Diffstat:
Mui_txt.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui_txt.c b/ui_txt.c @@ -84,7 +84,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:%8$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);