| 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:
M ui_txt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- |
| @@ -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); |