Fix #610
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user