From e4fceab18f4b7856a2ef6fbabebe1988c1fbfaea Mon Sep 17 00:00:00 2001 From: a1337xyz Date: Tue, 23 May 2023 03:01:44 +0000 Subject: [PATCH] move load/cache messages to right side (#446) this avoids overwriting the left side bar, which might contain more important information, for e.g output of the thumb-info script. Co-authored-by: A1337Xyz Co-authored-by: NRK Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/446 Reviewed-by: eylles Reviewed-by: NRK Co-authored-by: a1337xyz Co-committed-by: a1337xyz --- main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 3868e8e..fed9528 100644 --- a/main.c +++ b/main.c @@ -434,12 +434,12 @@ static void update_info(void) r->p = r->buf; if (mode == MODE_THUMB) { if (tns.loadnext < tns.end) - bar_put(l, "Loading... %0*d", fw, tns.loadnext + 1); + bar_put(r, "Loading... %0*d | ", fw, tns.loadnext + 1); else if (tns.initnext < filecnt) - bar_put(l, "Caching... %0*d", fw, tns.initnext + 1); - else if (info.ft.err) - strncpy(l->buf, files[fileidx].name, l->size); + bar_put(r, "Caching... %0*d | ", fw, tns.initnext + 1); bar_put(r, "%s%0*d/%d", mark, fw, fileidx + 1, filecnt); + if (info.ft.err) + strncpy(l->buf, files[fileidx].name, l->size); } else { bar_put(r, "%s", mark); if (img.ss.on) {