From 8a9e3ea43e6fe93f132d7d5a1b141416b96ad76f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Thu, 7 Dec 2017 21:44:40 +0100 Subject: Separate bar fields only by spaces --- main.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index aa25015..5f861df 100644 --- a/main.c +++ b/main.c @@ -330,6 +330,8 @@ void bar_put(win_bar_t *bar, const char *fmt, ...) va_end(ap); } +#define BAR_SEP " " + void update_info(void) { unsigned int i, fn, fw; @@ -364,16 +366,16 @@ void update_info(void) bar_put(r, "%s", mark); if (img.ss.on) { if (img.ss.delay % 10 != 0) - bar_put(r, "%2.1fs | ", (float)img.ss.delay / 10); + bar_put(r, "%2.1fs" BAR_SEP, (float)img.ss.delay / 10); else - bar_put(r, "%ds | ", img.ss.delay / 10); + bar_put(r, "%ds" BAR_SEP, img.ss.delay / 10); } if (img.gamma != 0) - bar_put(r, "G%+d | ", img.gamma); - bar_put(r, "%3d%% | ", (int) (img.zoom * 100.0)); + bar_put(r, "G%+d" BAR_SEP, img.gamma); + bar_put(r, "%3d%%" BAR_SEP, (int) (img.zoom * 100.0)); if (img.multi.cnt > 0) { for (fn = 0, i = img.multi.cnt; i > 0; fn++, i /= 10); - bar_put(r, "%0*d/%d | ", fn, img.multi.sel + 1, img.multi.cnt); + bar_put(r, "%0*d/%d" BAR_SEP, fn, img.multi.sel + 1, img.multi.cnt); } bar_put(r, "%0*d/%d", fw, fileidx + 1, filecnt); if (info.f.err) -- cgit v1.2.3