From f255e1cc1217ee7497436909a8a9b8dbf8fd270e Mon Sep 17 00:00:00 2001 From: NRK Date: Mon, 9 May 2022 19:23:54 +0600 Subject: 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. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ? "* " : ""; -- cgit v1.2.3