feat(lua): use vim.empty_dict() for empty return value in new api functions (#22737)

This commit is contained in:
bfredl
2023-03-20 16:16:15 +01:00
committed by GitHub
parent d3ac5a342d
commit 4cba53e09e

View File

@@ -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([[