aboutsummaryrefslogtreecommitdiff
path: root/fuzzel.lua
diff options
context:
space:
mode:
Diffstat (limited to 'fuzzel.lua')
-rw-r--r--fuzzel.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/fuzzel.lua b/fuzzel.lua
index 894fd07..fc6d10d 100644
--- a/fuzzel.lua
+++ b/fuzzel.lua
@@ -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