From 71a7940d74459c8a575100f93fe43e204413c2db Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Tue, 1 Nov 2011 08:36:20 +0100 Subject: Better fix for issue #25 --- commands.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'commands.c') diff --git a/commands.c b/commands.c index 89dcf8d..a8b9e77 100644 --- a/commands.c +++ b/commands.c @@ -69,10 +69,7 @@ bool it_switch_mode(arg_t a) { img.slideshow = false; reset_timeout(slideshow); } - if (fileidx < tns.cnt) - tns.sel = fileidx; - else - tns.sel = tns.cnt > 0 ? tns.cnt - 1 : 0; + tns.sel = fileidx; tns.dirty = true; mode = MODE_THUMB; } else { -- cgit v1.2.3