Fix missing pairs call

This commit is contained in:
Ben 2024-06-04 01:09:56 +02:00
parent a645d7b310
commit 9d58bcb79f
Signed by: ben
GPG key ID: 1353F41CF1CFF2D3

View file

@ -19,8 +19,9 @@ local function setTerm(termlike)
end
local function prepareObject(other)
assert(type(other) == "table", "object has to be a table")
local keys = {}
for key, _ in other do
for key, _ in pairs(other) do
keys.insert(key)
end
table.sort(keys)