mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00:00
use menu_set_navigation after a keyboard search instead of modifying
menu->selection_ptr directly.
This commit is contained in:
parent
3c7919ec51
commit
a3cef5ec38
@ -62,9 +62,11 @@ static void menu_key_end_line(void *data)
|
||||
static void menu_search_callback(void *userdata, const char *str)
|
||||
{
|
||||
menu_handle_t *menu = (menu_handle_t*)userdata;
|
||||
size_t index;
|
||||
|
||||
if (str && *str && file_list_search(menu->selection_buf, str, &index))
|
||||
menu_set_navigation(menu, index);
|
||||
|
||||
if (str && *str)
|
||||
file_list_search(menu->selection_buf, str, &menu->selection_ptr);
|
||||
menu_key_end_line(menu);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user