diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -187,7 +187,7 @@ void remove_file(int n, bool manual) filecnt--; if (n < tns.cnt) tns.cnt--; - if (mode == MODE_THUMB && fileidx >= tns.cnt) + if (mode == MODE_THUMB && tns.cnt > 0 && fileidx >= tns.cnt) fileidx = tns.cnt - 1; if (n < alternate) alternate--; |