diff --git a/source/blocks.cpp b/source/blocks.cpp index 06973c9..901bbed 100644 --- a/source/blocks.cpp +++ b/source/blocks.cpp @@ -254,7 +254,7 @@ void slots_list::draw_list(void) buttons[BUTTON_ARROW_DOWN].draw(); const unsigned int names_per_screen = 7; - if(this->selected_backup == this->scroll-1) + if(this->selected_backup == this->scroll-1 || this->backups.size()-this->scroll+1 < names_per_screen) this->scroll--; else if(this->backups.size()-this->scroll >= names_per_screen) {