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.
This commit is contained in:
NRK 2022-05-09 19:23:54 +06:00 committed by N-R-K
parent 3bf198ecd3
commit f255e1cc12

2
main.c
View File

@ -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 ? "* " : "";