From e1cdcbe08aecb3a9c70cc0ce9c9bdd4a59dada0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 28 Jul 2021 17:23:14 +0800 Subject: cleanup --- script/core/completion.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/core') diff --git a/script/core/completion.lua b/script/core/completion.lua index 26776634..653daff9 100644 --- a/script/core/completion.lua +++ b/script/core/completion.lua @@ -640,7 +640,7 @@ local function checkCommon(myUri, word, text, offset, results) if not words then goto CONTINUE end - for _, str in ipairs(words) do + for str in pairs(words) do if #results >= 100 then break end -- cgit v1.2.3