mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
feat(lua): use vim.empty_dict() for empty return value in new api functions (#22737)
This commit is contained in:
@@ -619,9 +619,10 @@ local function process_function(fn)
|
|||||||
}
|
}
|
||||||
]], return_type))
|
]], return_type))
|
||||||
else
|
else
|
||||||
|
local special = (fn.since ~= nil and fn.since < 11)
|
||||||
write_shifted_output(output, string.format([[
|
write_shifted_output(output, string.format([[
|
||||||
nlua_push_%s(lstate, ret, true);
|
nlua_push_%s(lstate, ret, %s);
|
||||||
]], return_type))
|
]], return_type, tostring(special)))
|
||||||
end
|
end
|
||||||
|
|
||||||
write_shifted_output(output, string.format([[
|
write_shifted_output(output, string.format([[
|
||||||
|
Reference in New Issue
Block a user