Avoid underflow when wrapping to last page in file browser
Another bug i introduced with !8 (merged), sorry
The way i had this, selectedfile
would underflow if direntry_count
was a multiple of 10
ETA: Actually, my initial fix would underflow too if the directory was empty. It didn't crash, but it probably shouldn't do that anyway. I just wrapped the whole thing in the direntry_count
condition
Edited by dana