diff options
Diffstat (limited to '')
-rw-r--r-- | recovery.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/recovery.cpp b/recovery.cpp index cdbb598e3..43a42eab8 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -545,12 +545,10 @@ get_menu_selection(const char* const * headers, const char* const * items, if (action < 0) { switch (action) { case Device::kHighlightUp: - --selected; - selected = ui->SelectMenu(selected); + selected = ui->SelectMenu(--selected); break; case Device::kHighlightDown: - ++selected; - selected = ui->SelectMenu(selected); + selected = ui->SelectMenu(++selected); break; case Device::kInvokeItem: chosen_item = selected; |