aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2018-06-09 11:55:20 +0200
committerBert Münnich <ber.t@posteo.de>2018-06-09 11:55:20 +0200
commit1e5cc7e3826028f745ebd366a7b2538141ceea75 (patch)
tree9b799107085e49cb3ce1bf18f96b56e6ebc01ded
parentcc476be7ccdcb573eb045f791091bd956dd88a26 (diff)
Fix cg_mark_range after removing images from file list
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
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)