Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Feb 3, 2024
1 parent 74cac66 commit d02278c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JL.Core/Lookup/LookupUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ private static List<LookupResult> SortLookupResults(IEnumerable<LookupResult> lo
.ThenBy(static lookupResult => lookupResult.Dict.Priority)
.ThenBy(static lookupResult =>
{
if (lookupResult.PrimarySpellingOrthographyInfoList is not null)
if (lookupResult.PrimarySpellingOrthographyInfoList is not null && lookupResult.PrimarySpelling == lookupResult.MatchedText)
{
for (int i = 0; i < lookupResult.PrimarySpellingOrthographyInfoList.Length; i++)
{
Expand Down

0 comments on commit d02278c

Please sign in to comment.