From 29679d493b80764cf1377fd41e61755759241edf Mon Sep 17 00:00:00 2001 From: hrsh7th Date: Thu, 9 Sep 2021 10:54:07 +0900 Subject: [PATCH] Remove waiting source for filtering --- lua/cmp/core.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/cmp/core.lua b/lua/cmp/core.lua index 361cd8e..2df30bf 100644 --- a/lua/cmp/core.lua +++ b/lua/cmp/core.lua @@ -259,7 +259,7 @@ core.filter = async.throttle(function() -- To wait for processing source for that's timeout. local sources = {} - for _, s in ipairs(core.get_sources()) do + for _, s in ipairs(core.get_sources({ source.SourceStatus.FETCHING, source.SourceStatus.COMPLETED })) do local time = core.SOURCE_TIMEOUT - s:get_fetching_time() if not s.incomplete and time > 0 then if #sources == 0 then