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.
+1 −1
1 file changed
- M main.c +1 −1
| @@ -400,7 +400,7 @@ static void update_info(void) | |||
| 400 | 400 | win_bar_t *l = &win.bar.l, *r = &win.bar.r; | |
| 401 | 401 | ||
| 402 | 402 | /* update bar contents */ | |
| 403 | − | if (win.bar.h == 0) | |
| 403 | + | if (win.bar.h == 0 || extprefix) | |
| 404 | 404 | return; | |
| 405 | 405 | for (fw = 0, i = filecnt; i > 0; fw++, i /= 10); | |
| 406 | 406 | mark = files[fileidx].flags & FF_MARK ? "* " : ""; | |