diff options
Diffstat (limited to 'fuzzel.lua')
| -rw-r--r-- | fuzzel.lua | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -68,7 +68,8 @@ } --And use it, to see what option closest matches "Brown Cat" - print("\"Lulzy Cat\" is close to \"" .. fuzzel.FuzzyFindDistance("Lulzy Cat",options) .. "\"") + local close,distance = fuzzel.FuzzyFindDistance("Lulzy Cat", options) + print("\"Lulzy Cat\" is close to \"" .. close .. "\", distance:" .. distance) --Sort the options to see the order in which they most closely match "Brown Cat" print("\"Frag God\" is closest to:") @@ -238,7 +239,7 @@ local function FuzzySort(str, func, ...) --Then build our output table local otbl = {} - for k,v in prs(sorted) do + for k,v in iprs(sorted) do for i,j in prs(usorted[v]) do tblins(otbl,j) end |
