mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 07:24:52 +01:00
fix: run callbacks on main thread
This commit is contained in:
parent
9dea608f04
commit
c4c3d0ced9
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue