diff options
author | Bert Münnich <ber.t@gmx.com> | 2011-11-01 08:36:20 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@gmx.com> | 2011-11-01 08:36:20 +0100 |
commit | 71a7940d74459c8a575100f93fe43e204413c2db (patch) | |
tree | 6262f06a148de8899ef1ecbd9cd947538f78bfef /commands.c | |
parent | 964bf133bbeb706bd966b85cd55902bcc581d346 (diff) |
Better fix for issue #25
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 { |