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:
kevinhwang91 2022-05-13 14:16:47 +08:00
parent 030417d80b
commit a33caf9b45

View File

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