Early `break` if `autocomplete` needs to update
This commit is contained in:
parent
ffe698cef7
commit
e5c55e8abc
|
@ -139,6 +139,7 @@ core.add_thread(function()
|
||||||
for _, doc in ipairs(core.docs) do
|
for _, doc in ipairs(core.docs) do
|
||||||
if not cache_is_valid(doc) then
|
if not cache_is_valid(doc) then
|
||||||
valid = false
|
valid = false
|
||||||
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue