mirror of
https://github.com/libretro/RetroArch
synced 2024-12-29 12:31:05 +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;
|
||||
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;
|
||||
ret = true;
|
||||
|
Loading…
Reference in New Issue
Block a user