mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
parent
279043d625
commit
a8a38f3465
@ -1,4 +1,3 @@
|
||||
require('vim.compat')
|
||||
require('coxpcall')
|
||||
local luv = require('luv')
|
||||
local lfs = require('lfs')
|
||||
|
@ -1,3 +1,4 @@
|
||||
require('vim.compat')
|
||||
local assert = require('luassert')
|
||||
local luv = require('luv')
|
||||
local lfs = require('lfs')
|
||||
|
@ -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)})
|
||||
|
Loading…
Reference in New Issue
Block a user