mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
perf(_editor): no need to stop inside vim.defer_fn
uv_run: 1. remove timer handle from heap 2. will start again if repeat is not 0
This commit is contained in:
parent
030417d80b
commit
a33caf9b45
@ -406,7 +406,6 @@ function vim.defer_fn(fn, timeout)
|
|||||||
timeout,
|
timeout,
|
||||||
0,
|
0,
|
||||||
vim.schedule_wrap(function()
|
vim.schedule_wrap(function()
|
||||||
timer:stop()
|
|
||||||
timer:close()
|
timer:close()
|
||||||
|
|
||||||
fn()
|
fn()
|
||||||
|
Loading…
Reference in New Issue
Block a user