mirror of
https://github.com/libretro/RetroArch
synced 2025-01-01 12:11:47 +00:00
Fix search bug.
If mid-string match was found, the last match would be returned.
This commit is contained in:
parent
1a8d009b20
commit
f719c70dfd
@ -138,7 +138,7 @@ bool file_list_search(const file_list_t *list, const char *needle, size_t *index
|
|||||||
ret = true;
|
ret = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (str) // Found mid-string match, but try to find a match with first chars before we settle.
|
else if (str && !ret) // Found mid-string match, but try to find a match with first chars before we settle.
|
||||||
{
|
{
|
||||||
*index = i;
|
*index = i;
|
||||||
ret = true;
|
ret = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user