aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)