Remove separator in text UI status - sacc - sacc(omys), simple console gopher client | |
git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/sacc/ | |
Log | |
Files | |
Refs | |
Tags | |
LICENSE | |
--- | |
commit a58414c67ddf05ff48b8a86fb2d3cf5e58cea4b9 | |
parent 80db85ac77a36eb3f591ea7f38816b6339607821 | |
Author: Quentin Rameau | |
Date: Sun, 4 Jul 2021 23:52:54 +0200 Remove separator in text UI status Diffstat: M ui_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'; |