Loading menu.c +1 −2 Original line number Diff line number Diff line Loading @@ -62,8 +62,7 @@ char *menu_prompt(const menu_item *items, const unsigned int num_menu_items) { } break; case '\n': const unsigned int selected_index = hovered_selection_index; selected_action = items[selected_index].command; selected_action = items[hovered_selection_index].command; // choose the hovered + selected item break; default: break; Loading Loading
menu.c +1 −2 Original line number Diff line number Diff line Loading @@ -62,8 +62,7 @@ char *menu_prompt(const menu_item *items, const unsigned int num_menu_items) { } break; case '\n': const unsigned int selected_index = hovered_selection_index; selected_action = items[selected_index].command; selected_action = items[hovered_selection_index].command; // choose the hovered + selected item break; default: break; Loading