Fix #610
This commit is contained in:
@@ -245,16 +245,20 @@ core.complete = function(self, ctx, source_configs)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if not self.view:get_active_entry() then
|
||||||
self.filter.timeout = self.view:visible() and THROTTLE_TIME or 0
|
self.filter.timeout = self.view:visible() and THROTTLE_TIME or 0
|
||||||
self:filter()
|
self:filter()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end)(s)
|
end)(s)
|
||||||
s:complete(ctx, callback)
|
s:complete(ctx, callback)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not self.view:get_active_entry() then
|
||||||
self.filter.timeout = THROTTLE_TIME
|
self.filter.timeout = THROTTLE_TIME
|
||||||
self:filter()
|
self:filter()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
---Update completion menu
|
---Update completion menu
|
||||||
@@ -264,7 +268,6 @@ core.filter = async.throttle(
|
|||||||
|
|
||||||
local ignore = false
|
local ignore = false
|
||||||
ignore = ignore or not api.is_suitable_mode()
|
ignore = ignore or not api.is_suitable_mode()
|
||||||
ignore = ignore or self.view:get_active_entry()
|
|
||||||
if ignore then
|
if ignore then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user