This commit is contained in:
hrsh7th
2021-12-05 18:22:03 +09:00
parent d12ba90da3
commit edc2a503ee

View File

@@ -245,17 +245,21 @@ core.complete = function(self, ctx, source_configs)
return
end
end
if not self.view:get_active_entry() then
self.filter.timeout = self.view:visible() and THROTTLE_TIME or 0
self:filter()
end
end
end
end)(s)
s:complete(ctx, callback)
end
if not self.view:get_active_entry() then
self.filter.timeout = THROTTLE_TIME
self:filter()
end
end
---Update completion menu
core.filter = async.throttle(
@@ -264,7 +268,6 @@ core.filter = async.throttle(
local ignore = false
ignore = ignore or not api.is_suitable_mode()
ignore = ignore or self.view:get_active_entry()
if ignore then
return
end