|
@@ -303,10 +303,11 @@ int dialog_menu(const char *title, const char *prompt,
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (i < max_choice ||
|
|
|
|
|
- key == KEY_UP || key == KEY_DOWN ||
|
|
|
|
|
- key == '-' || key == '+' ||
|
|
|
|
|
- key == KEY_PPAGE || key == KEY_NPAGE) {
|
|
|
|
|
|
|
+ if (item_count() != 0 &&
|
|
|
|
|
+ (i < max_choice ||
|
|
|
|
|
+ key == KEY_UP || key == KEY_DOWN ||
|
|
|
|
|
+ key == '-' || key == '+' ||
|
|
|
|
|
+ key == KEY_PPAGE || key == KEY_NPAGE)) {
|
|
|
/* Remove highligt of current item */
|
|
/* Remove highligt of current item */
|
|
|
print_item(scroll + choice, choice, FALSE);
|
|
print_item(scroll + choice, choice, FALSE);
|
|
|
|
|
|