mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
*: Provide list length when allocating lists
This commit is contained in:
@@ -2407,7 +2407,7 @@ describe('typval.c', function()
|
||||
describe('list ret()', function()
|
||||
itp('works', function()
|
||||
local rettv = typvalt(lib.VAR_UNKNOWN)
|
||||
local l = lib.tv_list_alloc_ret(rettv)
|
||||
local l = lib.tv_list_alloc_ret(rettv, 0)
|
||||
eq(empty_list, typvalt2lua(rettv))
|
||||
eq(rettv.vval.v_list, l)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user