From d02278c2d84479972a482a3c67c7f13029fe4a6e Mon Sep 17 00:00:00 2001 From: rampaa Date: Sun, 4 Feb 2024 01:58:12 +0300 Subject: [PATCH] Minor fix --- JL.Core/Lookup/LookupUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JL.Core/Lookup/LookupUtils.cs b/JL.Core/Lookup/LookupUtils.cs index 3fffc8df..f913d750 100644 --- a/JL.Core/Lookup/LookupUtils.cs +++ b/JL.Core/Lookup/LookupUtils.cs @@ -301,7 +301,7 @@ private static List SortLookupResults(IEnumerable 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++) {