summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/commands.c b/commands.c
index 501a938..09ba926 100644
--- a/commands.c
+++ b/commands.c
@@ -74,8 +74,10 @@ bool it_quit(arg_t a)
bool it_switch_mode(arg_t a)
{
if (mode == MODE_IMAGE) {
- if (tns.thumbs == NULL)
+ if (tns.thumbs == NULL) {
tns_init(&tns, filecnt, &win);
+ tns.alpha = img.alpha;
+ }
img_close(&img, false);
reset_timeout(reset_cursor);
tns.sel = fileidx;