Krolyxon
Commit f255e1c

Branches

Refs →

nsxivf255e1c

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.
Author
NRK
Date
2022-05-09 19:23 +0600
Committer
N-R-K · 2022-05-19 11:44 +0000
Parent
3bf198e
Commit
f255e1cc1217ee7497436909a8a9b8dbf8fd270e

+1 −1

1 file changed

  1. M main.c +1 −1
M main.c View
@@ -400,7 +400,7 @@ static void update_info(void)
400400 win_bar_t *l = &win.bar.l, *r = &win.bar.r;
401401
402402 /* update bar contents */
403− if (win.bar.h == 0)
403+ if (win.bar.h == 0 || extprefix)
404404 return;
405405 for (fw = 0, i = filecnt; i > 0; fw++, i /= 10);
406406 mark = files[fileidx].flags & FF_MARK ? "* " : "";