mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
fix(lua): preserve argument lists which are not lists
This commit is contained in:
@@ -273,8 +273,8 @@ end
|
||||
---@see |vim.in_fast_event()|
|
||||
function vim.schedule_wrap(cb)
|
||||
return (function (...)
|
||||
local args = {...}
|
||||
vim.schedule(function() cb(unpack(args)) end)
|
||||
local args = vim.F.pack_len(...)
|
||||
vim.schedule(function() cb(vim.F.unpack_len(args)) end)
|
||||
end)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user