summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/core/completion/completion.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua
index cbc8cd07..ffdf6413 100644
--- a/script/core/completion/completion.lua
+++ b/script/core/completion/completion.lua
@@ -534,6 +534,9 @@ local function checkFieldOfRefs(refs, state, word, startPos, position, parent, o
local funcs = {}
local count = 0
for _, src in ipairs(refs) do
+ if count > 100 then
+ break
+ end
local _, name = vm.viewKey(src, state.uri)
if not name then
goto CONTINUE