summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/method/textDocument/completion.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/method/textDocument/completion.lua b/script/method/textDocument/completion.lua
index a4b3ca79..d622fe73 100644
--- a/script/method/textDocument/completion.lua
+++ b/script/method/textDocument/completion.lua
@@ -71,6 +71,7 @@ local function cuterFactory(lines, text, position)
if not text:sub(i, i):match '[%w_]' then
start = i + 1
head = text:sub(start, position)
+ break
end
end
return function (insertText)