mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix zero boundary condition in MapToOriginalIndex
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
130202108c
commit
3f1862775e
1 changed files with 1 additions and 2 deletions
|
|
@ -23,8 +23,7 @@ namespace Flow.Launcher.Infrastructure
|
|||
public int MapToOriginalIndex(int translatedIndex)
|
||||
{
|
||||
int loc = originalToTranslated.BinarySearch(translatedIndex);
|
||||
|
||||
return loc > 0 ? loc : ~loc;
|
||||
return loc >= 0 ? loc : ~loc;
|
||||
}
|
||||
|
||||
public void endConstruct()
|
||||
|
|
|
|||
Loading…
Reference in a new issue