From c5063870e01b4b1b1a7bd83c4afbf3fe832fd716 Mon Sep 17 00:00:00 2001 From: Simon <33755707+Crotex@users.noreply.github.com> Date: Thu, 16 Jan 2020 08:26:10 +0100 Subject: [PATCH] Bug fixes Fix a bug which caused page scrolling to fail with invalid input order --- menu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/menu.c b/menu.c index 8cec4f1..98839cd 100644 --- a/menu.c +++ b/menu.c @@ -47,6 +47,9 @@ void show_menu(const struct MenuPage* pages, const size_t page_count, const bool --page_index; else { + if (page_key == 'n' || page_key == 'm') + break; + page_changed = false; itemKey = page_key; do {