From 1e5cc7e3826028f745ebd366a7b2538141ceea75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Sat, 9 Jun 2018 11:55:20 +0200 Subject: Fix cg_mark_range after removing images from file list --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index ae7f853..81b52c4 100644 --- a/main.c +++ b/main.c @@ -159,6 +159,8 @@ void remove_file(int n, bool manual) fileidx--; if (n < alternate) alternate--; + if (n < toggledidx) + toggledidx--; } void set_timeout(timeout_f handler, int time, bool overwrite) -- cgit v1.2.3