aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_editor.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-05-17 18:59:48 +0200
committerGitHub <noreply@github.com>2022-05-17 18:59:48 +0200
commit8a39032fddff364693f8f59db67e50988dfae225 (patch)
treee25fddd46e82767e2e33925e00bcdfa3aa7cd8fe /runtime/lua/vim/_editor.lua
parentf49699737c9b24e1af52719974cf3bc770539ef9 (diff)
parenta33caf9b45f8d0832e9de07669fbc33ed4efafd9 (diff)
downloadrneovim-8a39032fddff364693f8f59db67e50988dfae225.tar.gz
rneovim-8a39032fddff364693f8f59db67e50988dfae225.tar.bz2
rneovim-8a39032fddff364693f8f59db67e50988dfae225.zip
Merge pull request #18554 from kevinhwang91/perf-timerstart
perf(_editor): no need to stop inside vim.defer_fn
Diffstat (limited to 'runtime/lua/vim/_editor.lua')
-rw-r--r--runtime/lua/vim/_editor.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/runtime/lua/vim/_editor.lua b/runtime/lua/vim/_editor.lua
index dc25d68f61..e6ab48f30d 100644
--- a/runtime/lua/vim/_editor.lua
+++ b/runtime/lua/vim/_editor.lua
@@ -406,7 +406,6 @@ function vim.defer_fn(fn, timeout)
timeout,
0,
vim.schedule_wrap(function()
- timer:stop()
timer:close()
fn()