From f0e2a6d162252905cb47b285a6f53c75a9e8b903 Mon Sep 17 00:00:00 2001 From: "Squishy (C6H12O6+NaCl+H2O)" <106439598+SweetSea-ButImNotSweet@users.noreply.github.com> Date: Mon, 10 Jul 2023 21:08:22 +0700 Subject: [PATCH] Revert change --- parts/scenes/dict.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/parts/scenes/dict.lua b/parts/scenes/dict.lua index 9a613877..43b71106 100644 --- a/parts/scenes/dict.lua +++ b/parts/scenes/dict.lua @@ -59,13 +59,10 @@ end local function _search() local input=inputBox:getText():lower() _clearResult() - -- This change was made by Sea. Should the search function prioritize the best match result and move it to the top of the search result - -- Usually yes except Vietnamese version of Zictionary - local prioritizeBestMatch=not SETTING.locale:find"vi" local first for i=1,#dict do local pos=find(dict[i].title:lower(),input,nil,true) or find(dict[i].keywords:lower(),input,nil,true) - if pos==1 and not first and prioritizeBestMatch then + if pos==1 and not first then ins(result,1,dict[i]) first=true elseif pos then