Fix missing pairs call
This commit is contained in:
parent
a645d7b310
commit
9d58bcb79f
|
@ -19,8 +19,9 @@ local function setTerm(termlike)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function prepareObject(other)
|
local function prepareObject(other)
|
||||||
|
assert(type(other) == "table", "object has to be a table")
|
||||||
local keys = {}
|
local keys = {}
|
||||||
for key, _ in other do
|
for key, _ in pairs(other) do
|
||||||
keys.insert(key)
|
keys.insert(key)
|
||||||
end
|
end
|
||||||
table.sort(keys)
|
table.sort(keys)
|
||||||
|
|
Loading…
Reference in a new issue