mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
make jump to letter move to first occurrence of the letter
This commit is contained in:
parent
f84fcfa62b
commit
baa4e2590d
|
@ -104,7 +104,7 @@ void GuiGamelistOptions::jumpToLetter()
|
||||||
|
|
||||||
if(checkLetter < letter)
|
if(checkLetter < letter)
|
||||||
min = mid + 1;
|
min = mid + 1;
|
||||||
else if(checkLetter > letter)
|
else if(checkLetter > letter || (mid > 0 && (letter == toupper(files.at(mid - 1)->getName()[0]))))
|
||||||
max = mid - 1;
|
max = mid - 1;
|
||||||
else
|
else
|
||||||
break; //exact match found
|
break; //exact match found
|
||||||
|
|
Loading…
Reference in a new issue