From a33caf9b45f8d0832e9de07669fbc33ed4efafd9 Mon Sep 17 00:00:00 2001 From: kevinhwang91 Date: Fri, 13 May 2022 14:16:47 +0800 Subject: 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 --- runtime/lua/vim/_editor.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'runtime/lua/vim/_editor.lua') diff --git a/runtime/lua/vim/_editor.lua b/runtime/lua/vim/_editor.lua index 98921463b3..ac9adada39 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() -- cgit