mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +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))
|
||||
else
|
||||
local special = (fn.since ~= nil and fn.since < 11)
|
||||
write_shifted_output(output, string.format([[
|
||||
nlua_push_%s(lstate, ret, true);
|
||||
]], return_type))
|
||||
nlua_push_%s(lstate, ret, %s);
|
||||
]], return_type, tostring(special)))
|
||||
end
|
||||
|
||||
write_shifted_output(output, string.format([[
|
||||
|
Reference in New Issue
Block a user