summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-05-09 15:23:54 +0200
committerN-R-K <nrk@disroot.org>2022-05-19 13:44:30 +0200
commitf255e1cc1217ee7497436909a8a9b8dbf8fd270e (patch)
treeafe075db3adba3fe198b84eaa98000bf3e2d8f48
parent3bf198ecd38fef4c00fb04d2e7def7a794d3236c (diff)
downloadnsxiv-f255e1cc1217ee7497436909a8a9b8dbf8fd270e.tar.zst
fix: don't override statusbar if info script doesn't exist
this happens when the keyhandler is invoked while viewing an animated image. if {image,thumb}-info scripts exists, everything works as expected. but if they don't, then update_info will override the statusbar.
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 1ca0e79..316c00e 100644
--- a/main.c
+++ b/main.c
@@ -400,7 +400,7 @@ static void update_info(void)
win_bar_t *l = &win.bar.l, *r = &win.bar.r;
/* update bar contents */
- if (win.bar.h == 0)
+ if (win.bar.h == 0 || extprefix)
return;
for (fw = 0, i = filecnt; i > 0; fw++, i /= 10);
mark = files[fileidx].flags & FF_MARK ? "* " : "";