fix: run callbacks on main thread

This commit is contained in:
əlemi 2024-09-17 16:35:27 +02:00
parent 9dea608f04
commit c4c3d0ced9
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -52,7 +52,7 @@ if CODEMP.timer == nil then
while true do while true do
local cb = CODEMP.native.poll_callback() local cb = CODEMP.native.poll_callback()
if cb == nil then break end if cb == nil then break end
cb() vim.schedule(function() cb() end)
end end
end) end)