aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora1337xyz <a1337xyz@noreply.codeberg.org>2023-05-23 05:01:44 +0200
committerNRK <nrk@disroot.org>2023-05-23 05:01:44 +0200
commite4fceab18f4b7856a2ef6fbabebe1988c1fbfaea (patch)
tree036e86ebcf2490a17d530789a6bc8f5e782bb617
parent824b2cb8858b19ace3e26a0f54cf9dd740be9b59 (diff)
downloadnsxiv-e4fceab18f4b7856a2ef6fbabebe1988c1fbfaea.tar.zst
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 <blindwizard@tutanota.com> Co-authored-by: NRK <nrk@disroot.org> Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/446 Reviewed-by: eylles <eylles@noreply.codeberg.org> Reviewed-by: NRK <nrk@disroot.org> Co-authored-by: a1337xyz <a1337xyz@noreply.codeberg.org> Co-committed-by: a1337xyz <a1337xyz@noreply.codeberg.org>
-rw-r--r--main.c8
1 files 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) {