From d0231d06de1606446884f712deb7f3c2a48149a2 Mon Sep 17 00:00:00 2001 From: hrsh7th Date: Fri, 5 Nov 2021 21:32:30 +0900 Subject: [PATCH] Improve async.step --- lua/cmp/utils/async.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/cmp/utils/async.lua b/lua/cmp/utils/async.lua index cca1c1d..39d8777 100644 --- a/lua/cmp/utils/async.lua +++ b/lua/cmp/utils/async.lua @@ -39,9 +39,9 @@ end async.step = function(...) local tasks = { ... } local next - next = function() + next = function(...) if #tasks > 0 then - table.remove(tasks, 1)(next) + table.remove(tasks, 1)(next, ...) end end table.remove(tasks, 1)(next)