mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-13 13:28:49 +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