aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-05-09 17:56:27 +0600
committerN-R-K <nrk@disroot.org>2022-05-19 11:44:30 +0000
commit3bf198ecd38fef4c00fb04d2e7def7a794d3236c (patch)
tree0919257a3de6aca3c43d2594a359d90f819f28c6
parent633a4f66d98e46755effb71d6cd3f8a681c4818c (diff)
fix: broken thumbnail statusbar after running keyhandler
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 7c3b835..1ca0e79 100644
--- a/main.c
+++ b/main.c
@@ -618,10 +618,10 @@ static bool run_key_handler(const char *key, unsigned int mask)
if (changed) {
img_close(&img, true);
load_image(fileidx);
- } else {
- open_info();
}
}
+ if (mode == MODE_THUMB || !changed)
+ open_info();
free(oldst);
reset_cursor();
return true;