sacc

sacc (saccomys): simple gopher client.
Log | Files | Refs | LICENSE

commit a58414c67ddf05ff48b8a86fb2d3cf5e58cea4b9
parent 80db85ac77a36eb3f591ea7f38816b6339607821
Author: Quentin Rameau <quinq@fifth.space>
Date:   Sun,  4 Jul 2021 23:52:54 +0200

Remove separator in text UI status

Diffstat:
Mui_txt.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui_txt.c b/ui_txt.c @@ -100,10 +100,10 @@ printstatus(Item *item, char c) fmt = (strcmp(item->port, "70") && strcmp(item->port, "gopher")) ? "%1$3lld%%%*2$3$c %4$s:%8$s/%5$c%6$s [%7$c]: " : - "%3lld%%%*c %s/%c%s [%c]: "; + "%3lld%% %s/%c%s [%c]: "; if (snprintf(bufout, sizeof(bufout), fmt, (printoff + lines-1 >= nitems) ? 100 : - (printoff + lines) * 100 / nitems, ndigits(nitems)+1, '|', + (printoff + lines) * 100 / nitems, item->host, item->type, item->selector, c, item->port) >= sizeof(bufout)) bufout[sizeof(bufout)-1] = '\0';