mirror of
https://github.com/neovim/neovim.git
synced 2025-11-03 09:14:24 +00:00
committed by
Justin M. Keyes
parent
279043d625
commit
a8a38f3465
@@ -114,8 +114,7 @@ local lua2obj_type_tab = {
|
||||
api.xmalloc(len * ffi.sizeof('KeyValuePair'))),
|
||||
}})
|
||||
for i = 1, len do
|
||||
local table_unpack = table.unpack or unpack -- luacheck: compat
|
||||
local key, val = table_unpack(kvs[i])
|
||||
local key, val = unpack(kvs[i])
|
||||
dct.data.dictionary.items[i - 1] = ffi.new(
|
||||
'KeyValuePair', {key=ffi.gc(lua2obj(key), nil).data.string,
|
||||
value=ffi.gc(lua2obj(val), nil)})
|
||||
|
||||
Reference in New Issue
Block a user